Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1402502

    Is it possible to display the active state (selected menu item) differently in the burger menu? if yes how? Thank you in advance.

    #1402541

    Hey Tobias,
    You could add this css to your Enfold Theme Options ▸ General Styling ▸ Quick CSS field

    #av-burger-menu-ul .current-menu-item {
    	background-color: #eee;
    }

    It will add a gray background color to the current menu item
    Enfold_Support_735.jpeg

    Best regards,
    Mike

    #1403118

    Hi Mike, great that works. Now, however, if there are sub-items, these are also marked. How can I manage that only the current point is marked, even if there are sub-points? Greetings Tobi

    #1403150

    Hi Tobi,

    Can you try to replace Mike’s code with this one:

    #av-burger-menu-ul .current-menu-item > a {
    	background-color: #eee;
    }

    Hope it helps.

    Best regards,
    Nikko

    #1403194

    Hello Nikko, thanks for the message… the submenu items are now marked with this code…great. Unfortunately, the main menu items are no longer marked when selected. I’m looking for a solution that marks the currently selected menu item, whether it’s the main menu or submenu … I’m happy about suggestions.

    #1403208

    Hi,
    Try this css instead:

    #av-burger-menu-ul .current_page_item {
    	background-color: #eee;
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1403216

    Thank you, unfortunately it still doesn’t work the way I want it to. Please look at my 3 graphics:

    graphic 02: a main menu item selected (it works)
    graphic 02

    graphic 03: a main menu item selected which also has sub-menu items – unfortunately it does not work
    graphic 03

    graphic 01 a sub-item selected it works.
    graphic 01

    What can I do?

    #1403220

    Hi,
    Thanks for the screenshots, try this css instead:

    #top #wrap_all #av-burger-menu-ul .current_page_item > a {
    	background-color: #eee;
    }

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    After applying the css, please clear your browser cache and check.
    If this doesn’t help please include the url to your site so we can take a closer look.

    Best regards,
    Mike

    #1403222

    Perfect! Thanks very much

    #1403226

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘active state / selected menu item’ is closed to new replies.