I would like to make an expandable page (not post or category) tree navigation on our website that has folder icons for any "Page" that has children. I would like the "Pages" that don't have children to have a page icon.
Here is a visual example:
I am currently using a plugin called Fold Page List:
This plugin makes the sub-pages expand when you are on the parent page or child page.
Is there any way I can modify this plugin to add a class "has_children" to the li item if it has children? Or is there another way I should be going about this?
Thanks in advance for all your help