Making a database query
-
I am trying to customize a child theme from TwentyTwelve by making database query using the get_template_part() function in my index file that references another php file named “welcome.php.” The goal is to get users to see a customized message when they come to my index.php page of my site. I was watching a tutorial on this and I cannot replicate the above goal. My site is a local site off of MAMP, so I cannot show you a live version. My apologies.
Here is my code from the index file that located in the child theme folder:
<?php get_template_part( 'welcome' ); ?>
Here is my code for the welcome.php located in the child theme folder:
<!-- Welcome message to be displayed on the front index page --> <div id="front-page-intro" class="clear"> <article id="intro-elements"> <div class="entry-content"> <p>PLEASE WORK PLEASE WORK PLEASE WORK</p> </div><!-- .entry-content --> </article><!-- #intro-elements --> </div><!-- #front-page-intro -->
Any ideas?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Making a database query’ is closed to new replies.