Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP How to Build a WordPress Theme WordPress Theme Templates Activating a Custom Theme

front-page.php not loading

I have the convention Zach discusses, it makes sense. My problem/question is why my empty front-page.php is not loading. He states that with no content in the front-page.php you will not see any content. Then he adds some and we see it. My front-page.php is empty and I still am seeing content from index.php? Thanks

4 Answers

What level are you on and which tutorial? That may help me to see what is going on. I think you may be in Wordpress for Theme under the libraries.

Eric Breuers
PLUS
Eric Breuers
Courses Plus Student 19,270 Points

In Settings > Reading try selecting "Front page displays a: 'static page'" and set the front page to the page name where you're expecting to see the front-page.php template. You can then set your posts page to whatever you'd like your blog posts (index.php by default) page to be.

Thank you both it seems like I need to have the drop-down for Front page as "Home" for it to do what Zach said it should. I don't know If I missed that step. Thanks