Category : css

I had the issue, that I want to add a get_template_directory_uri() in a css line. This Css line is located in a boxes.php file. $box_first = ‘linear-gradient(rgba(0, 175, 227, .8), rgba(0, 175, 227, .8)), url("/wp/wp-content/themes/my_theme/inc/img/boxes/box2.png") center;’; I also tried already to make a variable and put the variable in $tpl_dir = echo get_template_directory_uri() . ‘/inc/img/boxes/box2.png’; ..

Read more

I have had a hard time finding answers about this, hence the question here. I would like to do a dashboard with data from my database. I started off easy, a pie-chart with the distribution of females/males. Feel free to tell me how to make the code better, feels really cluttered… <?php require_once ‘database.php’; include ..

Read more

I’m using carousel to display data from database and I tried to set first card active but it won’t work and cards are static. Cards works fine without php. I was trying to use boolean variable and set active class with some conditions but it didn’t work. <div id="recipeCarousel" class="carousel slide w-100" data-ride="carousel"> <div class="carousel-inner ..

Read more