Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #31847

    Jen H
    Participant

    I’m using Integrity stack and notice that when on a child page (sub-menu), the parent page does not maintain current-menu-item styling in the main menu navbar. Can you tell me how (or is it possible) to do this?

    #31986

    Christian
    Moderator

    Hey Jen,

    In the Customizer > Custom > CSS, please add the code below.

    .current-menu-parent a.sf-with-ul {
      color: white !important;
      -webkit-box-shadow: 0 2px 0 0 #ffffff;
      box-shadow: 0 2px 0 0 #ffffff;
    }
    

    Hope that helps. 🙂

    #32504

    Jen H
    Participant

    k thanks – this did the trick for me (yours was missing inset)

    
    .current-menu-parent a.sf-with-ul { 
    -webkit-box-shadow: 0 4px 0 0 #F21E29 inset; 
    box-shadow: 0 4px 0 0 #F21E29 inset; 
    }
    #32508

    Support
    Member

    Hey Jen,

    Glad that it works for you.

    We appreciate that you replied with working code this really helps other users having same issue.

    Thanks

    #32529

    Ying-Fu
    Participant

    Is this also possible for the menu type color since I got rid of the little bar?

    #32655

    Alexander
    Keymaster

    Hi Ying-Fu,

    Sure, just use color: #abc123; instead of the box shadow rules.

    #33938

    Dani M
    Participant

    This is exactly what i was looking for.

    Only one issue though, i have some pages under more than one parent on the navigation bar. When i click one of these child pages both the menus are highlighted. Any way to only highlight the parent that was used to get to the page?

    #34178

    Rad
    Moderator

    Hi Dani,

    Given the code above, you can change it into :

    .current-menu-parent > a.sf-with-ul { 
    -webkit-box-shadow: 0 4px 0 0 #F21E29 inset; 
    box-shadow: 0 4px 0 0 #F21E29 inset; 
    }
    

    Hope this helps.

    #214407

    ovation
    Participant
    This reply has been marked as private.
    #214674

    Christopher
    Moderator

    Hi there,

    please try this :

    li.current-page-ancestor a span {
    color: red;
    }

    Hope it helps.

    #215123

    ovation
    Participant

    Perfect. I wanted to highlight the entire li element (not just the immediate area behind the text), so I just took out the span. This worked for me:

    li.current-page-ancestor a {
    color: red;
    }

    Thanks!!

    #215331

    Rad
    Moderator

    Okay cool, good one 😉

    #259474

    FreekR
    Participant

    Hi! I’m trying to highlight the menu item of the parent page too.

    Tried this code:

    .current-menu-parent > a.sf-with-ul {
    -webkit-box-shadow: 0 4px 0 0 #F21E29 inset;
    box-shadow: 0 4px 0 0 #F21E29 inset;
    }

    But it doesn’t seem to be working… I’ll send the details in a private reply.

    Thanks in advance! 🙂

    #259476

    FreekR
    Participant
    This reply has been marked as private.
    #259501

    Christopher
    Moderator

    Hi there,

    Please try this code:

    li.current-page-ancestor a span {
      color: red;
    }

    Hope it helps.