Jump to content

How to remove all the underlining from links - custom code only working for some

Go to solution Solved by Web_Solutions,

Recommended Posts

Posted

I have the custom code below to remove underlining from all links on my website. For some reason it has stopped working for some links. So I have some pages with multiple links where some are now underlined, and others are not. My footer links remain without an underline.  

I also have a page where there is suddenly an underline, in a different colour, under two words, but there is no link behind those words!

What is going on? And can anyone help?

Code:

a {
  text-decoration: none !important;
}
  • Replies 4
  • Views 980
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted (edited)
4 minutes ago, EmmB said:

I have the custom code below to remove underlining from all links on my website. For some reason it has stopped working for some links. So I have some pages with multiple links where some are now underlined, and others are not. My footer links remain without an underline.  

I also have a page where there is suddenly an underline, in a different colour, under two words, but there is no link behind those words!

What is going on? And can anyone help?

Code:

a {
  text-decoration: none !important;
}

Can you share the page link?

Edited by Web_Solutions

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Posted

These are the pages with some links underlined and some not:

https://www.creativeprivacy.co.uk/points-of-view/computer-says-no-or-does-it

https://www.creativeprivacy.co.uk/points-of-view/your-data-protection-new-years-resolution-write-in-plain-english

This page has two links, both underlined:

https://www.creativeprivacy.co.uk/points-of-view/data-protection-law-needs-trust-to-work-thats-why-its-failing

The second link above is also the page where the words 'plain English' have been randomly underlined in turquoise.

  • Solution
Posted
20 minutes ago, EmmB said:

These are the pages with some links underlined and some not:

https://www.creativeprivacy.co.uk/points-of-view/computer-says-no-or-does-it

https://www.creativeprivacy.co.uk/points-of-view/your-data-protection-new-years-resolution-write-in-plain-english

This page has two links, both underlined:

https://www.creativeprivacy.co.uk/points-of-view/data-protection-law-needs-trust-to-work-thats-why-its-failing

The second link above is also the page where the words 'plain English' have been randomly underlined in turquoise.

Add these code.

.sqs-block-html a, .sqs-block-html a * {
    text-decoration: none !important;
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Posted

Wonderful! That worked for removing all the link underlines - thank you!

I just have the random turquoise underline left now.

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.