1

I would like to apply special styling to the menu items of pages that are children of child pages. Is there a way to do this?

2

Add this CSS rule to your stylesheet:

ul.menu ul.sub-menu ul.sub-menu li{
   //special styling here
}

its the default CSS classnaming WordPress use for the menus, you can see how i add it here.

enter image description here

0
2

If you are looking only for styling you can go something like this:

ul ( main-items ) > ul ( secondary menu ) > ul ( third level menu ).

You can provide more information about what exactly you need to style and the context.

1

You can target your elements with jQuery using these methods:

children():https://api.jquery.com/children/

or

find(): https://api.jquery.com/find/

You may have some class you could target like .dropdown-menu or something else.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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