Hello,

when I create a menu with a dashed line as a separator I still get the list style image. (See the attached screenshot.) Is it possible to add a special class to those menu items so that the list style image can be removed with css? With "special class" I mean something like

  • ----
  • instead of

  • ----
  • .
    That would be great :)

    Have a nice day, Fabian

    CommentFileSizeAuthor
    menu.png1.1 KBfmueller

    Comments

    fmueller’s picture

    Oh, my example is not shown correctly. Since I am not able to edit it I write a new comment. I meant

    <li class="leaf no-image"><span class="seperator">----</span></li>
    

    instead of

    <li class="leaf"><span class="seperator">----</span></li>
    
    fmueller’s picture

    Title: add special class to menu items that are separator » Add special class to menu items that are separator menu items
    Servit’s picture

    Hi,
    Sorry it took me a while to get to have a look on your issue.
    Yes, it seems like a logical request. I will be adding a specific class to the li tag of nolinks and separators.

    Expect the update soon!

    Khaled Zaidan

    fmueller’s picture

    Thanx Khaled :-)

    held69’s picture

    For me this update would be welcome as well.

    thanks

    hedac’s picture

    I also need a special class for the li separators. not the in the span inside.

    hedac’s picture

    oh sorry.. I have seen the function special_menu_itemsoverwrite_menu_item which I think does it..
    the problem is I am using nice menus module. So I guess I need to patch nice menus for that