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’; ..
I’m struggling to find/integrate any solutions I’ve found online to help generate a unique class for each div. It would be fine if for example, the div was called "gallery-div" and 1 was added on to each div eg gallery-div1, gallery-div2, gallery-div3 etc. This is what I currently have (doesn’t have a unique class set ..
First off, I have tried looking the internet, and here, for answers and have yet to find one that works for me so I’m sorry if the answer is somewhere easy to find and I just missed it. Basically I have a sql database with a "vehicles" table, its separated into colums labelled yr,make,model,etc. Database ..
On my index.php file I included a PHP file (test1.php) that echo’s some strings and generates a <h3> element and a <p> element with some content. Upon loading my site I noticed that those element were not reacting to my CSS but all other elements worked just fine. I don’t understand why not. I got ..
I’m new to PHP therefore having a problem with styling form container using the .php extension. I save the file in xamp folder with the name of Login.php in this file I write some HTML code included with a form tag and also a Login.css file included in this folder. the problem is whenever i ..
I have two text type inputs. I want to convert them into one textbox(Lowercase with dash) while typing just like below. <input type="text" name="first"> <input type="text" name="last"> I want combine this two text box into another textbox Example: Nikhil Patel to nikhil-patel Sourc..
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 ..
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 ..
My php code for contact form does not send the email to the designated email, however, it says it sent it. I have it uploaded on a server, so it is live. However, it still does not work. I inputted my real email, however, I changed it to [email protected] to ask this question. HTML: <div ..