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 trialMatthew Dilello
6,203 PointsHow to Build a Custom WordPress Theme, Stage 5: Coding the Header and Footer Templates
Is there some other reason for striping the ul from the main nav with strip_tags() other than so you don't have to adjust your CSS styles to accommodate extra html list? I have almost always utilized unordered lists for things like menus.
Also, the main nav (with the supplied project html-prototype CSS) is not correctly displaying in Firefox, or IE browsers. The anchor elements are set to display:block but are given no width / max-width. Interesting that Google Chrome interprets this as the mockup is intended, but should it? Am I missing something?
2 Answers
Zac Gordon
Treehouse Guest TeacherTry checking out this post
Giorgia Makris
3,377 PointsThank you!! It worked perfectly!
Giorgia Makris
3,377 PointsCan you take a look at the issue I'm having here in the last step of "Finishing the Homepage Template":
https://teamtreehouse.com/forum/cannot-remove-bullet-point-from-flexslider
Zac Gordon
Treehouse Guest TeacherMatthew,
You raise some really good points here. First, with the template, no, there is not another reason to strip the tags. In fact, most prototypes will come with li tags, like you mention.
When I received this markup (it was a design handed over to me to work with) I thought it would be helpful to mention that you can customize menu markup, since that does sometimes come in handy. However, in most cases you will not likely have to do this.
As for the prototype menu issues, I will have to look into that. Thank you for pointing it out, and if you see any quick fixes, please let me know and I'll update the download files!
Thanks!
Giorgia Makris
3,377 PointsGiorgia Makris
3,377 PointsI seem to have the same issue with my nav not showing correctly in Firefox, have you found a fix for this?