Goal: Reverse link styling in a Shopify Impact theme so links are not underlined by default and show an underline on hover. The original CSS (text-decoration: none on a and pseudo-states) did not take effect.
Key approaches discussed:
Injecting custom CSS in theme.liquid above the tag, with a screenshot of the outcome. Details of the exact CSS were not provided in the post.
Adding .reversed-link { background: none !important; } to theme.css, which does not directly address underline behavior.
Creating a dedicated custom-styles snippet with CSS to remove underlines normally and add them on hover, then including it via {% render ‘custom-styles’ %} in theme.liquid. A video demonstrated the steps; header links already behaved correctly, and the fix targeted body links.
Outcome: The snippet-and-include method worked quickly and solved the issue; the thread is resolved.
Notes and terms:
theme.liquid: the main layout file where site-wide assets/styles are included.
Snippet: a reusable Liquid file for injecting custom styles or code.
text-decoration: the CSS property controlling link underlines.
Media: Screenshots and a video were central to illustrating the implementation and result.
Summarized with AI on December 20.
AI used: gpt-5.
I am using the Impact Theme, and with this theme, all links are underlined and the underline disappears on hover. I would like to reverse this effect, to have the link text appear normal and without an underline, and for the underline to appear on hover. I’ve tried adding the following CSS to the bottom of the theme.CSS Theme Editor, but nothing changes:
Thanks for sharing your store URL, I have checked your store, and I noticed the links on your header navigations are looking as expected and the animation/ hover effect only shows when we hover over the text but on the other parts (body) of the website it’s not working as expected.
To remove the animation/ hover effect on the link text when appearing normally and show the animation only when the link text is hovered, kindly follow the steps outlined below:
Open the code editor, as shown in the screenshot below.
Done? Now save the file, and try previewing to confirm if the changes work for you. In the reference above, it looks like something as shown in the video.
This worked like a charm and it only took me 5 minutes to make this change! Thank you so much for the detailed instructions and even including a video! Extremely helpful.