-
AuthorPosts
-
April 9, 2014 at 9:22 pm #31847
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?
April 10, 2014 at 7:20 am #31986Hey 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. 🙂
April 11, 2014 at 3:04 am #32504k 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; }
April 11, 2014 at 3:51 am #32508Hey Jen,
Glad that it works for you.
We appreciate that you replied with working code this really helps other users having same issue.
Thanks
April 11, 2014 at 7:21 am #32529Is this also possible for the menu type color since I got rid of the little bar?
April 11, 2014 at 2:26 pm #32655Hi Ying-Fu,
Sure, just use
color: #abc123;
instead of the box shadow rules.April 16, 2014 at 11:26 am #33938This 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?
April 16, 2014 at 7:25 pm #34178Hi 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.
February 24, 2015 at 5:52 pm #214407This reply has been marked as private.February 25, 2015 at 2:10 am #214674Hi there,
please try this :
li.current-page-ancestor a span { color: red; }
Hope it helps.
February 25, 2015 at 12:20 pm #215123Perfect. 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!!
February 25, 2015 at 4:46 pm #215331Okay cool, good one 😉
April 27, 2015 at 6:26 am #259474Hi! 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! 🙂
April 27, 2015 at 6:27 am #259476This reply has been marked as private.April 27, 2015 at 7:01 am #259501Hi there,
Please try this code:
li.current-page-ancestor a span { color: red; }
Hope it helps.
-
AuthorPosts