bluehatdesign
Member
Posted 1 year ago #
I'm using the Superfish tempate and I'd like to include a separator between top-level menu items, but not after the last item. I'm wondering how I can edit the output to include a first and/or last class to the li tags. Any help would be appreciated!
Thanks,
Jack
http://wordpress.org/extend/plugins/menubar/
Hi Jack,
It's not possible to do that automatically, but you can manually add a class to a menu item, using the 'CSS Class' field in the plugin admin page.
bluehatdesign
Member
Posted 1 year ago #
Thanks for responding Andrea. Would you be able to shed a little more light on exactly how I would go about adding a specific class to the last item in the list? As it is, the code is generating class="". Unfortunately, I know just enough PHP to get myself in trouble. :)
Here's the plugin code:
[260 lines of code moderated as per the Forum Rules. Please use the pastebin]
bluehatdesign
Member
Posted 1 year ago #
OK, nevermind, I figured it out. As usual, I was over-thinking. Adding a class manually through the Menubar interface works a treat. Thanks again.