Product Description: selectively colorize link underline

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?

Please provide link to the store.

@sanjaykmr

https://d66377-2a.myshopify.com/products/test
password: 123456

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

@sahilsharma9515 @sanjaykmr

https://d66377-2a.myshopify.com/products/test
Password: 123456

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

1 Like

Hello @MMO1 ,

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


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

Output =>

Please share if you have any queries.

Thank you.

1 Like

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

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