Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1414396

    This message refers – https://kriesi.at/support/topic/decorations-for-menu-item

    You kindly gave me CSS code to get an underline on the menu item for the active page on the menu.

    However, when you go into a submenu item on a dropdown menu item, all the submenu items have an underline and not just the active one.

    Could you make a slight tweak to the code you provided please – the code you gave me was:

    nav.main_menu .current-menu-item .avia-menu-text {
    border-bottom: 2px solid;
    padding-bottom: 5px;
    }

    Thank you.

    #1414428

    Hey stevewroche,

    Please try this CSS instead:

    nav.main_menu .current-menu-item .avia-menu-text {
      border-bottom: 2px solid;
      padding-bottom: 5px;
    }
    
    nav.main_menu .sub-menu .current-menu-item .avia-menu-text {
      border-bottom: none;
    }

    Best regards,
    Rikard

    #1414479

    Thank you for that. However, that code doesn’t put an underline on the active page on the submenu – it puts an underline on the non-active pages on the submenu. Can you tweak it so that the active page on the submenu has an underline but the non-active pages on the submenu do not. Thank you.

    #1414501

    Hi,

    Please try this CSS instead:

    nav.main_menu .current-menu-item > .avia-menu-text, nav.main_menu .sub-menu .current-menu-item .avia-menu-text  {
      border-bottom: 2px solid;
      padding-bottom: 5px;
    }

    Best regards,
    Rikard

    #1414508

    Thank you, that puts the underline on the active submenu page but not on the other pages when they are active.

    #1414618

    Hi stevewroche,

    I tweaked Rikard’s code a bit, please try to use this one:

    nav.main_menu .current-menu-item > a > .avia-menu-text, 
    nav.main_menu .sub-menu .current-menu-item .avia-menu-text  {
      border-bottom: 2px solid;
      padding-bottom: 5px;
    }

    Best regards,
    Nikko

    #1414625

    That’s brilliant – it works; thank you so much.

    #1414641

    Hi stevewroche,

    I’m glad that we could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Further question on my decorations for menu item topic’ is closed to new replies.