how to underline the text instead of making it white

Solved

how to underline the text instead of making it white

christian_russo
Trailblazer
215 1 45

hi,

 

is it possible to underline the text on my menu en not make it white because the background is already white.

is it also possible to make the header white only when i hover the menus?

 

Scherm­afbeelding 2024-12-11 om 22.49.41.pngScherm­afbeelding 2024-12-11 om 22.49.56.png

website: https://www.gallerychristian.com/

password 6399

 

thanks

Accepted Solution (1)

DaisyVo
Shopify Partner
2354 291 333

This is an accepted solution.

HI @christian_russo 

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

 

x-header.header:hover {
    background: white !important;
}
x-header.header:hover * {
    color: black !important;
    fill: black !important;
}
ul.header__dropdown-menu > li {
    text-decoration: underline !important;
}

 

 

 
Please note that if you change the header to white color, the logo will be gone as the logo is white image
 
I hope this helps
 
Best,
 
Tiana

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

View solution in original post

Replies 3 (3)

suyash1
Shopify Partner
10434 1287 1646

@christian_russo - please add this css to the very end of your base.css file and check,
Shopify Admin -> Online Store ->Theme -> Edit code -> base.css

.header__dropdown-menu .link-faded-reverse:hover {color: rgb(0 0 0 / 100%); text-decoration: underline;}

 

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.

DaisyVo
Shopify Partner
2354 291 333

This is an accepted solution.

HI @christian_russo 

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

 

x-header.header:hover {
    background: white !important;
}
x-header.header:hover * {
    color: black !important;
    fill: black !important;
}
ul.header__dropdown-menu > li {
    text-decoration: underline !important;
}

 

 

 
Please note that if you change the header to white color, the logo will be gone as the logo is white image
 
I hope this helps
 
Best,
 
Tiana

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
christian_russo
Trailblazer
215 1 45

hi! 

 

thanks this worked! but is it possible to only underline it when I hover it? and can I make the box bigger? and make my logo black when I hover the header so you can still see it? thanks!

Scherm­afbeelding 2024-12-12 om 21.00.36.png