Add ‘has_children’ class to parent li when modifying Walker_Nav_Menu

Posted by Prem Tiwari | Updated on

You can fill this in yourself, if you also override the display_element() method in your custom walker (because this is the easiest place to access the child element array):

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers