WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i'm using twenty-eleven, i have on the menu 4 items : Home, About us, Contact, Clients it's a custom menu. The site currently is on localhost, so no preview is available. However i haven't put the child pages on the menu. (as a dropdown menu) I've put them on side bar. Now, Whenever i'm on eg Home page and select a child page from About us (our team) i want the About us page to be highlighted on the menu. I've looked almost everything, assigning classes, .current_page_parent but nothing works. Any help is much appreciated. :) Thanks

share|improve this question

I do this quite often, actually, if I'm understanding your issue correctly. If you use Appearance > menus, and create your navigation (with dropdown/children), then pull in the Custom Menu widget into the sidebar, you can use CSS to handle the rest.

Basically, you just set the main navigation in the header to how the regular list items, but hide the children. Something like:

#header .menu li li {

That will show the main links in the header, but hide the dropdowns.

Because you're pulling the same menu into the sidebar via the widget, the classes you need to highlight the menu items (for the current page you're on) are already set - all you have to do it style them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.