put a underline into header icon with text on mouse hover

put a underline into header icon with text on mouse hover

UTOPIA-PARIS
Excursionist
29 1 6

Hey ! i want to add underline with black color who appears from left to right  below header icon when the mouse is hover it.

 

I want this : 

 

Capture d’écran 2024-09-29 à 18.54.14.png

 

by the way, how wan i add the separation line like on the photo ? 

 

my website: utopia-paris.fr

 

thanks !!

Replies 2 (2)

Moeed
Shopify Partner
5516 1496 1786

Hey @UTOPIA-PARIS 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (min-width: 768px) {
.header__icon font:hover {
    text-decoration: underline !important;
}
.header__icon {
    padding-top: 20px !important;
}
.header__icon .svg-wrapper {
    border-right: solid 1px black;
    padding-right: 10px;
}
a#cart-icon-bubble {
    padding-left: 10px !important;
}
}
</style>

RESULT:

Moeed_0-1727629693030.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


UTOPIA-PARIS
Excursionist
29 1 6

hey ! thanks for the answer  but it doesn't work :

 

Capture d’écran 2024-09-29 à 21.20.45.png