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

Menu-item-has children

Hi folks,

I am trying going though a site from html to wordpress, the html site has a sub nav on menu link: http://bypasswebdevelopment.com/bradleys/

When I move it to wordpress though the class from the css is not being picked up, http://bradleys.hostings.co.uk/

Any idea to fix this quickly?

Thanks in advance, :)

1 Answer

Tom Napier
Tom Napier
6,623 Points

Hey Daniele,

On the WordPress version, the sub menus have a class of 'sub-menu'. Note the hyphenation.

So,

<ul class="sub-menu">...</ul>

On your original site, the sub menus have a class of 'submenu' - without the hyphen.

In your css, you need to select .sub-menu, rather than .submenu, to select the submenu on the WordPress site correctly.

Hope that helps.

Tom

Thanks Tom, silly me who didn't look properly, :)