Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

Thanks..

share|improve this question
add comment

1 Answer

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.

jQuery(function($){
   $('.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. –  ApocalypseBoy Aug 28 '11 at 17:31
add comment

Your Answer

 
discard

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.