Shopify themes, liquid, logos, and UX
Hi,
Please guide me on how to change the underline to a box when it is hover and with the change of colour.
Thank you.
my website is: https://cheesecakebased.com/
Solved! Go to the solution
This is an accepted solution.
Hey @SupGold96
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.
{% if template == 'index' %}
<style>
li:hover {
border: 1px solid black;
}
</style>
{% endif %}
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
Go to your theme customizer, click on the header, scroll to where it says Add Custom CSS, and try this code:
.link--text:hover {
color: rgba(var(--color-foreground),.75);
border: 2px solid;
background: #fff2f8;
}
.header__menu-item:hover span {
text-decoration: none;
}
How does that look?
This is an accepted solution.
Hey @SupGold96
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.
{% if template == 'index' %}
<style>
li:hover {
border: 1px solid black;
}
</style>
{% endif %}
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi, is it possible to take away the underline too? and fill the inside of the box color?
On which section of the website do you want to include this feature?
main menu.
I want to remove the underline and replace with box filled with color when hover
This is an accepted solution.
Go to your theme customizer, click on the header, scroll to where it says Add Custom CSS, and try this code:
.link--text:hover {
color: rgba(var(--color-foreground),.75);
border: 2px solid;
background: #fff2f8;
}
.header__menu-item:hover span {
text-decoration: none;
}
How does that look?
Thank you so much!
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024