Re: Make product title underlined when pressed

Solved

Make product title underlined when pressed

MiguelMaya
Excursionist
46 0 4

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.

 

https://misteri.ca

 

IMG_0165.png

IMG_0166.png

 

Accepted Solution (1)

parth_ghelani
Shopify Partner
222 32 30

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

Was your question answered? Mark it as an Accepted Solution.
If you need further assistance to optimize your store, please don't hesitate to reach out. I'm committed to providing you with my full support and ensuring that you get the most out of our collaboration.

Get in Touch: You can contact me directly at softkarts@gmail.com for any questions or concerns

View solution in original post

Replies 2 (2)

Shadab_dev
Shopify Partner
194 7 20

@MiguelMaya Inside your components-card.css file add this code at the bottom of the file.

@media screen and (max-width: 767px) {
.underline-links-hover a:active { text-decoration: underline; text-underline-offset: .3rem;}
}

If this helps you. please like and mark as solution.

For any further queries on web development,
Email

Buy me Coffee

Thanks anyways
If this is helpful, please Like and Accept the solution.
Buy me Coffee, if you feel i was helpful. Definitely a motivation to carry out gutting solutions. Need help with shopify liquid or any project in web dev- Feel free to Email Me

Thanks

parth_ghelani
Shopify Partner
222 32 30

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

Was your question answered? Mark it as an Accepted Solution.
If you need further assistance to optimize your store, please don't hesitate to reach out. I'm committed to providing you with my full support and ensuring that you get the most out of our collaboration.

Get in Touch: You can contact me directly at softkarts@gmail.com for any questions or concerns