I’d like to remove the generic underline when selecting from the nav menu and replace with a different graphic, which I already have. Where can I change the code to point it to a file that I will upload?
All help gratefully received!
Thank you!
I’d like to remove the generic underline when selecting from the nav menu and replace with a different graphic, which I already have. Where can I change the code to point it to a file that I will upload?
All help gratefully received!
Thank you!
Hi @JamieG
Could you share your store link?
Using Studio theme, if that helps?!
You can visit your Online store > Themes > Edit code > open base.css file, add this code at the bottom of file to remove underline and change color instead of when hovering on menu
.header__menu-item:hover span {
text-decoration: unset !important;
color: green;
}
Thanks for this. Although the ‘scribble’ looks like I’ve overlaid it, this is actually the graphic I’d like to appear as the new underline. I have it as a separate artwork file. Can this be added within that code?
Ahh, I got your mean. Please try to use this code
.header__menu-item:hover span {
text-decoration: unset !important;
background-image: url('your image link');
background-position: bottom center;
}
Thanks Dan - although that hasn’t worked, unfortunately. I entered the code at the bottom line of the base.css file as follows:
.header__menu-item:hover span {
text-decoration: unset !important;
background-image: url(“https://cdn.shopify.com/s/files/1/0420/5438/5827/files/Website_v1_0025_Layer-25.png?v=1698684089”);
background-position: bottom center;
Could you share your preview link so I can check?
That’s not worked for me. I’m sure I must’ve done something wrong!
Thanks a lot Dan - that’s perfect!
Very welcome, @JamieG