Product Description: selectively colorize link underline

Topic summary

• Goal: On a product page, make the “Read more” link display a red underline in both default and hover states (and keep the link itself red).

• Access details: Preview URL and password were shared so solutions could be tailored to the live theme.

• Proposed approaches:

  • Add CSS in the theme stylesheet targeting .rte a { color: red !important; }. This changes the link text color but does not address the underline color requirement.
  • Two responses advised inserting code near the closing tag in theme.liquid and included screenshots of an expected outcome. However, the actual code blocks were empty in the messages, so the exact implementation steps are unclear.

• Key gaps: No concrete snippet was provided to set the underline color (and hover state) specifically. The posts do not include hover-specific rules or a demonstrated way to control the underline styling.

• Status: Unresolved. A working CSS example for coloring the underline (including hover) is still needed, or the missing code should be re-posted. Images were shared but are insufficient without the code.

Summarized with AI on December 30. AI used: gpt-5.

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