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

If your common with the code that wp_nav_menu function generates. You should know what im asking for.

I need to add an indicator like a plus sign or an arrow to indicate that this menu-item has a sub-menu. I cant find a class or id that would allow me to do that.

Im guessing ill need a plugin for this? BUT I need some opinion first.


share|improve this question
up vote 1 down vote accepted

I would do this with JS I'm afraid. It's the quickest simplest form. Using jQuery I have this snippet.

   $('.menu li:has(".sub-menu")').addClass('has-sub-menu');

Then you can use CSS to do what you need :)

share|improve this answer
Thanks. I actually made a small plugin that adds a .sub-menu, .menu-item-last, and .menu-item-last to the menu mark up. – ProNoob Aug 28 '11 at 17:31

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.