Custom WordPress theme front page displays in wrong location
-
I’m new to WordPress and following a video tutorial to convert my HTML template into a WordPress theme. I building on localhost with wampserver. I have created a theme folder in the WordPress themes folder and given it a name. I have also created files according to the WordPress documentation. Now I have these files in the folder:
– index.php
– page.php
– single.php
– functions.php
– header.php
– footer.php
– style.cssI’ve configured the style.css file correctly. I can tell this because I was able to get WordPress to recognise the custom theme that I just created and have the theme activated.
So far, only style.css and index.php have content. All other files are empty. I have
<?php echo "Hello world"; ?>
in index.php. When I launch the website at localhost/wordpress/, I got a completely blank page, but when I open localhost/wordpress/functions.php, everything shows up (Hello world).I’m following the video, so at this point the Hello world message should be showing up at localhost/wordpress/ but not localhost/wordpress/functions.php.
What can possibly go wrong with this setup? Remember,
<?php echo "Hello world"; ?>
is the only line of code I have. I don’t believe it’s an PHP error.
- The topic ‘Custom WordPress theme front page displays in wrong location’ is closed to new replies.