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 trialEduardo Daniel Brito Reyes
7,032 PointsBlog page taking up the index.php template instead of the home.php.
I followed the video but the blog page is taking the index.php template, it is not displaying the sidebar. I made sure this was the case by adding text in the index.php and seeing it appear in the Blog - Posts page. The blog page doesn't even let me change it's template and I don't think this is the problem as, in the video, no template was set for the blog page. Just for confirmation the contact page which uses the left sidebar template does displays the correct styling with the sidebar and everything.
Thank you for any and all help.
1 Answer
Austin Whipple
29,725 PointsVery interesting. If home.php exists as a readable file, it should override index.php. That said, if there is a front-page.php file, it will override both. (Give this page of WordPress developer docs for more information on template hierarchy.)
Beyond that, I'd double check the file to make sure it exists on the server and has correct permissions set (so it is readable by the server/WordPress).