superfish template- adding separators (4 posts)

  1. bluehatdesign
    Posted 4 years 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!



  2. Andrea Tarantini
    Plugin Author

    Posted 4 years ago #

    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.

  3. bluehatdesign
    Posted 4 years 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]

  4. bluehatdesign
    Posted 4 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Menubar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic