Hello, how to remove underline on hover?
Is it possible to remove the underline on collection pages only?
Alternatively, making product title in heavier font instead of the underline.
Goal: remove the underline on hover from product titles on collection pages in the Shopify Dawn theme (or alternatively use a heavier font).
What was tried:
Context & notes:
Status: Unresolved. Key need is a selector (or set of selectors) that disables the underline for all hover states on product cards on collection templates without breaking mobile layouts.
Hello, how to remove underline on hover?
Is it possible to remove the underline on collection pages only?
Alternatively, making product title in heavier font instead of the underline.
@nd500 , do this to fix it in 20 seconds:
.card-wrapper:hover .card-information__text{
text-decoration: unset !important;
}
Kind regards,
Diego
Tank you for the reply but unfortunately it did not work.
Please share your website URL.
Hi @nd500 ,
You can follow the instruction below:
.card-wrapper:hover .card-information__text{
text-decoration: unset !important;
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
Best regards.
It’s not working
correct! used the code as you suggested but no changes…
Please add below code in bottom of assets/component-card.css file
@media screen and (min-width: 990px)
.card-wrapper:hover .card-information__text {
text-decoration: none !important;
}
thank you.
It effected mobile size and product cards broke.
To future visitors: be skeptic when you see CSS codes that don’t make sense.
.full-unstyled-link:hover {
text-decoration: unset !important;
}
I’m not sure what exactly doesn’t make sense about the code afore shared. Technically it is a valid piece of CSS code that likely doesn’t work with the newest versions of the Dawn theme since they’re frequently updated.
Either way, I’m glad you found a solution. Thanks for sharing with the community.
Kind regards,
Diego
This still doesn’t work, it only doesn’t show the underline if you’re hovering directly on the link. If you get near the product card it underlines the title.