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 trial

WordPress

Matthew Dilello
Matthew Dilello
6,203 Points

How 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?

Giorgia Makris
Giorgia Makris
3,377 Points

I seem to have the same issue with my nav not showing correctly in Firefox, have you found a fix for this?

2 Answers

Giorgia Makris
Giorgia Makris
3,377 Points

Thank you!! It worked perfectly!

Giorgia Makris
Giorgia Makris
3,377 Points

Can 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
STAFF
Zac Gordon
Treehouse Guest Teacher

Matthew,

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!