Shopify themes, liquid, logos, and UX
hello, is anyone able to help me add an underline ease in on hover to my "shop now" button text on my image banner?
https://51dmzlcv2fxmqh9a-27884224571.shopifypreview.com
Solved! Go to the solution
This is an accepted solution.
hello @Element1
Go to online store ----> themes ----> actions ----> edit code ---->assets ----section-image-banner.css...> add the code end of the file
.banner__buttons {
text-decoration: none;
position: relative;
color: #000;
font-weight: bold;
padding-bottom: 2px;
}
.banner__buttons::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 2px;
background-color: #000;
transition: width 0.3s ease-in;
}
.banner__buttons:hover:after {
width: 100%;
}
thanks
Hello @Element1
Go to online store ---------> themes --------------> actions ------> edit code------->base.css
at the end of the file and save.
a.button.button--primary {
text-decoration: underline 2px;
}
If this was helpful, hit the like button and accept the solution.
Thanks
unfortunately, this didn't work for me
Go to online store ---------> themes --------------> actions ------> edit code------->base.css
at the end of the file and save.
.banner__buttons a:hover {
font-weight: bold !important;
text-decoration: underline 2px;
}
Hi @Element1
Go to online store > themes > click 3 dots > edit code > search base.css then paste this code in the base.css on the bottom of the file
a.button.button--primary:hover {
text-decoration: underline;
}
This is an accepted solution.
hello @Element1
Go to online store ----> themes ----> actions ----> edit code ---->assets ----section-image-banner.css...> add the code end of the file
.banner__buttons {
text-decoration: none;
position: relative;
color: #000;
font-weight: bold;
padding-bottom: 2px;
}
.banner__buttons::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 2px;
background-color: #000;
transition: width 0.3s ease-in;
}
.banner__buttons:hover:after {
width: 100%;
}
thanks
this worked! thank you so much
I am glad that worked 😊
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025