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 trialNino Roldan
Courses Plus Student 9,308 PointsShirts link shows white background
Hi, I put in the php code to decipher if the $section variable is "shirts" and then it should underilne the link and the logic is working fine. but it seems like there is a problem with the css/html as after i put in the php code, the "Shirts" link background became white.
3 Answers
Jason Anello
Courses Plus Student 94,610 PointsIf you're seeing the white background on the home page it has to do with the $section variable not being defined on the homepage.
Here's another post that should help you:
https://teamtreehouse.com/forum/step-left-out-indexphp-contains-error-in-header
Robert Walker
17,146 PointsHi Nino,
I would love to help you out but you need to include your code to see what the problem is.
I suggest you watch the video "Tips for asking questions" over on the right to see how to use the markdown sheet and add code, it will be a huge help to you in the future when trying to ask questions about code and get help.
Nino Roldan
Courses Plus Student 9,308 PointsThanks to both Robert and Jason! Yes I should be more descriptive with my questions and will keep that in mind in the future.
Thanks Jason for pointing me to that direction; understood it now! Looks like the "isset" route is a good way to "future proof" (am i using it correctly?) the site.
Jason Anello
Courses Plus Student 94,610 PointsHi Nino,
I guess you could think of it as future proofing in the sense that as you add more pages to your site you don't have to worry about setting that $section variable every single time. Even on pages that don't use it.