Shopify themes, liquid, logos, and UX
Like the desktop version when hovering the mouse, I’d like the product title text to display underlined when pressed on the mobile version. Thanks.
Solved! Go to the solution
This is an accepted solution.
Hello @MiguelMaya
To show underline in product title for mobile when pressed, you just need to follow below steps:
1. Go to shopify Admin > Online Store > Edit code.
2. In code directory, find the file named "base.css" and open the file.
3. Copy below mentioned code and paste it at the end of the file.
@media (max-width: 768px) {
.product-card-wrapper .card__heading a:focus,
.product-card-wrapper .card__heading a:active {
text-decoration: underline;
text-underline-offset: 3px;
}
}
4. Don't forget to save the file after making changes.
Hope this solution works for your issue.
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Best Regards
Parth ghelani
@MiguelMaya Inside your components-card.css file add this code at the bottom of the file.
This is an accepted solution.
Hello @MiguelMaya
To show underline in product title for mobile when pressed, you just need to follow below steps:
1. Go to shopify Admin > Online Store > Edit code.
2. In code directory, find the file named "base.css" and open the file.
3. Copy below mentioned code and paste it at the end of the file.
@media (max-width: 768px) {
.product-card-wrapper .card__heading a:focus,
.product-card-wrapper .card__heading a:active {
text-decoration: underline;
text-underline-offset: 3px;
}
}
4. Don't forget to save the file after making changes.
Hope this solution works for your issue.
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Best Regards
Parth ghelani
We 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, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024