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[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers