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 trialed quijano
11,907 PointsWhich php. file we have to use for the blog?
Hey Zac. In your presentation "Setting the Blog..." You start saying that the file to help us to set up the "Blog" is single-portfolio.php then a jump cut (video-editing) and you say that the page-sidebar.php file will help us to create the "Blog". I assume that is the page-side.php file from where you continue working toward to have the finished theme. Just an observation.
4 Answers
Zac Gordon
Treehouse Guest TeacherFor the blog you primarily use home.php for the blog landing page and then single.php for the individual blog post pages.
rosinapissaco
13,401 PointsYes, there is a bug in the video. You should open page-sidebar-left.php and save as home.php.
Ernest Guaimano
14,928 PointsUse the page-sidebar-left.php file as a starting point for your home.php file. This is what is used throughout the remainder of this tutorial section.
Jason Brady
17,372 PointsThe video starts by saying to open single-portfolio.php and do a file>save as home.php... then the video immediately says to use page-sidebar-left.php and do a file>save as home.php
The second entry (page-sidebar-left.php) is the correct template to start with. This was obviously not meant to make it to the live version.
Jason Brady
17,372 PointsJason Brady
17,372 PointsNice catch... I was coming here to say the exact same thing.