How can I add underline to links on my new theme?

Hi

We have recently changed themes and now the links on the site are not underlined, does anyone have the solution please. I have seen a few threads where people have the code to remove the underline but I want it adding please

Hello @sie602001

To add underlines to links on your Shopify site, you can add CSS code to your theme. Here’s how you can do it:

  1. Access your Shopify admin: Log in to your Shopify account and navigate to your store’s admin dashboard.

  2. Go to the Theme editor: From the admin dashboard, click on “Online Store” in the left-hand sidebar, and then select “Themes.”

  3. Edit your current theme: Locate your active theme and click on “Actions” > “Edit code” to open the theme editor.

  4. Find the stylesheet file: In the theme editor, navigate to the “Assets” directory and locate the CSS file that controls the styles of your site. Common names for the main stylesheet file are theme.css or styles.css.

  5. Open the stylesheet: Click on the CSS file to open it in the code editor.

  6. Add CSS code: Inside the CSS file, add the following CSS code to add underlines to the links:

a {
text-decoration: underline;
}
  1. This CSS code selects all anchor () tags on your site and applies the text-decoration property with the value of underline, which adds underlines to the links.

Save the changes: Once you’ve added the CSS code, click on the “Save” or “Update” button to save the changes to your stylesheet.

@ZestardTech many thanks for the quick response, I added that code however now all the links on the site are underlined, sorry I should have been more specific.

The text with links which I want underlined is on the homepage and all in the collection seo description, what I dont want is any of the menu or submenus underlined

Hello There,

Please share your store URL and password.
So that I will check and let you know the exact solution here.