Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
After copying the files my page does not display correctly.
After copying the HTML from index.php to header.php and setting up the suggest.php, my site does not display correctly. There is no more header or navigation on the main page and all of the images are large lining the right side of the page.
You have named your include folder "inc.php" when it should only be "inc"
Your include statements can't find header.php because of this.
If you right click over the folder name you should have the option to rename it. Everything should be sorted out once you get the folder properly named.
The styling problems that you had were due to the css not being loaded.
Lori Jones2,205 Points
Jose, your folder inc.php should be just inc rename it by right clicking on inc.php and select rename then change the title to inc
I am having a problem with display also, but I think that somehow my css is not linking right to the files after creating the header.php.
Edward Starski960 Points
I think a big issue is the stylesheet not linking properly because the folder structure of the site has changed. The link to your stylesheet should go back a directory before going into the css directory. Please explain that as a lot of people are confused.
Marius Unknown12,925 Points
Just update header.php style link to this:
<link rel="stylesheet" href="../css/style.css" type="text/css">
As you see I added 'two points' out there.