WordPress.org

Ready to get started?Download WordPress

Forums

Menubar
superfish template- adding separators (4 posts)

  1. bluehatdesign
    Member
    Posted 2 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!

    Thanks,
    Jack

    http://wordpress.org/extend/plugins/menubar/

  2. Andrea Tarantini
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 2 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

About this Topic

Tags