How do I add an indicator to my .menu-item if it contains a .sub-menu?

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.

Read More

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

Thanks..

Related posts

Leave a Reply

1 comment

  1. 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 🙂