Re: Product Description: selectively colorize link underline

Product Description: selectively colorize link underline

MMO1
Excursionist
45 0 4

Hi, I have a product description like this:

 

This item is great. Read more.

 

I want to specify the red link to have a red underline as well, on both the default state and upon hover. How do I do this?

Replies 7 (7)

sanjaykmr
Tourist
6 1 1

Please provide link to the store.

MMO1
Excursionist
45 0 4
MMO1
Excursionist
45 0 4

sahilsharma9515
Shopify Partner
1206 156 233

Hi @MMO1 

Can you please provide your store URL and password as well if applicable, so that I can provide you solution that can work for your store.

 

Best regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


sahilsharma9515
Shopify Partner
1206 156 233

Hi @MMO1 Please add the code in your theme.css/base.css/style.css file which is available in your theme.

 

.rte a {
color: red !important;
}

If you are not sure where is your theme.css/base.css/index.css/style.css file please follow the steps:

  1. Login in shopify admin.
  2. Click on the Online Store.
  3. Then click on the button next to Customize in live Theme.
  4. Click Edit Code.
  5. Search theme.css/base.css/index.css/style.css in the code in left hand side which ever is available in your theme.
  6. You can add the above code at the bottom of the file.

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


Anshul_arora
Navigator
453 128 96

Hello @MMO1 ,

Please add the below-mentioned code at the bottom of the theme.liquid file before </body> tag.

<style>
.rte a {

text-decoration-color: red;

}

</style>

 

I hope the code will help you to change the text underline color to red.

Output =>

Anshul_arora_0-1713874557919.png

 

Please share if you have any queries.

Thank you.

Please remember to like and accept the solution to help other store owners.

For Shopify Design & Development | Custom Coding -Visit Here

theycallmemakka
Shopify Partner
1662 396 417

Hi @MMO1 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </body>

<style>
.product__description  a {
    text-decoration-color: #ff0000;
}
</style>

theycallmemakka_0-1713875120261.png

 

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com