No content showing
-
Hi,
I’m new to WordPress and web developing so my skills are not top notch at the moment.
I am trying to create a WordPress theme.
The theme shows up in the themes panel, but when I open the theme, I am met with a blank screen, even with a line of code in my index.php file. The h1 is not showing up, nor is the p from the footer showing up.If I click on theme details, then all the details from the style.css show up, but nothing from the .php files seem to be showing.
My files look like this at the moment:
style.css:
/* Theme Name: Family Recipe's Author: Kevin Description: Family Recipe Website Version: 0.1 alpha */
index.php:
<?php get header(); ?> <h1>This is my index</h1> <?php get footer(); ?>
header.php:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Family Recipe's</title> </head> <body>
footer.php:
<footer> <p>Hi there</p> </footer> </body> </html>
I am using MAMP on Windows 10.
The theme is located under: C:\MAMP\htdocs\familysite\wp-content\themes\Familysite
(I have looked up many tuts, one of which said to change the name ‘wordpress’ to the name of your site, so that’s what I did.Please help,
Kevin
- The topic ‘No content showing’ is closed to new replies.