Tagged: x
-
AuthorPosts
-
March 22, 2017 at 2:32 pm #1416678
Hi there, in order to change the lines displayed in the header menu when hovering on page names i added this code in the css (as in another question from the forum)
/* Removes line above current and hovered menu item Integrity */
.x-navbar .desktop .x-nav > li > a:hover, .x-navbar .desktop .x-nav > .x-active > a, .x-navbar .desktop .x-nav > .current-menu-item > a
{
box-shadow: none !important;
}
/* Adds line below current and hovered menu item text*/
.x-navbar .desktop .x-nav > li > a:hover span, .x-navbar .desktop .x-nav > .x-active > a span, .x-navbar .desktop .x-nav > .current-menu-item > a span {
padding-bottom: 5px;
border-bottom: 2px solid grey;
}The problem is that this applies on the cart button too that when hovered (depending on the screen you are on) changes shape in a way that i don’t want. Is there any way i can exclude the cart button from the code above?
Some screenshots follow to be mroe clear.March 23, 2017 at 12:45 am #1417246Hello There,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Meanwhile, you can make use of this code:
/* Removes line above current and hovered menu item Integrity */ .x-navbar .desktop .x-nav > li:not(.x-menu-item-woocommerce) > a:hover, .x-navbar .desktop .x-nav > .x-active > a, .x-navbar .desktop .x-nav > .current-menu-item > a { box-shadow: none !important; } /* Adds line below current and hovered menu item text*/ .x-navbar .desktop .x-nav > li:not(.x-menu-item-woocommerce) > a:hover span, .x-navbar .desktop .x-nav > .x-active > a span, .x-navbar .desktop .x-nav > .current-menu-item > a span { padding-bottom: 5px; border-bottom: 2px solid grey; }
Please let us know if this works out for you.
March 23, 2017 at 6:46 pm #1418345This reply has been marked as private.March 24, 2017 at 2:00 am #1418694Hi,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
March 24, 2017 at 6:29 am #1418854This reply has been marked as private.March 24, 2017 at 8:49 am #1418980Hi,
I went ahead and change the code to this.
/* Removes line above current and hovered menu item Integrity */ .x-navbar .desktop .x-nav > li:not(.x-menu-item-woocommerce) > a:hover, .x-navbar .desktop .x-nav > .x-active:not(.x-menu-item-woocommerce) > a, .x-navbar .desktop .x-nav > .current-menu-item:not(.x-menu-item-woocommerce) > a { box-shadow: none !important; } /* Adds line below current and hovered menu item text*/ .x-navbar .desktop .x-nav > li:not(.x-menu-item-woocommerce) > a:hover span, .x-navbar .desktop .x-nav > .x-active:not(.x-menu-item-woocommerce) > a span, .x-navbar .desktop .x-nav > .current-menu-item:not(.x-menu-item-woocommerce) > a span { padding-bottom: 5px; border-bottom: 2px solid grey; }
March 27, 2017 at 5:09 am #1421418Amazing, thanks!
March 27, 2017 at 5:36 am #1421439You’re welcome! 🙂
-
AuthorPosts