Hello, I’m trying to make the main menu option underlined when on one of its child / subpages. One of X theme’s articles says to place the 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;
}
under Customizer > Custom > CSS, in the article: https://theme.co/apex/forums/topic/how-to-keep-current-menu-item-navbar-highlight-when-on-sub-menu-pages/
I’ve tried this, to no avail.
Question #1: What does the “sf” stand for in a.sf-with-ul
?
Your other article says to add the following code:
.x-navbar .x-nav > .current-menu-parent > a {
-webkit-box-shadow: inset 0 4px 0 0 #938a79 inset !important;
box-shadow: inset 0 4px 0 0 #938a79 inset !important;
}
As well as changing:
.current-menu-parent
to .current-menu-ancestor
.
I am using a child theme but none of the solutions seem to work.
The URL of my website is:
http://terracana.priscillathen.com/our-services/commercial-applications/
You’ll notice that I disabled the top level URL for the ‘Our Services’ menu option with /#!
.
Question #2: How can I make the main menu option (Our Services) remain highlighted (in my case with the red underline) when on any of the subpages?
Any pointers in the right direction would be greatly appreciated. Thanks.