Skip to main content
Solved

Is it possible to use html/css to remove an underline from a link?


Forum|alt.badge.img+1

I would like to remove the underline from just one link, and not another?

 

Globally removing the underline from links does not work in my case. 

 

Has anyone had success using html/css to remove the underline from a link? 

Best answer by Taylor Tarpley

Hi @ConnorBo

 

Welcome to the Community! Happy to help! 

 

Sorry to hear you’ve had issues here. Do you mind trying this bit of code to see if this brings you success?

<a href="URL" style="text-decoration:none!important;">DISPLAY TEXT </a>

 

Hope this helps!

-Taylor 

View original
Did this topic or the replies in the thread help you find an answer to your question?

6 replies

Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 2 replies
  • October 1, 2023

It’s adding style=”text-decoration:none” to the hyperlink in the source code. 

 

For example: 

<a href="https://relativitytextiles.com/collections/wallpaper" style="text-decoration: none;">

 


Taylor Tarpley
Community Manager
Forum|alt.badge.img+60
  • Community Manager
  • 2148 replies
  • Answer
  • October 5, 2023

Hi @ConnorBo

 

Welcome to the Community! Happy to help! 

 

Sorry to hear you’ve had issues here. Do you mind trying this bit of code to see if this brings you success?

<a href="URL" style="text-decoration:none!important;">DISPLAY TEXT </a>

 

Hope this helps!

-Taylor 


Forum|alt.badge.img+2
  • Contributor III
  • 5 replies
  • October 10, 2023

Hi @Taylor Tarpley having a similar issue and I can confirm the above works (for me anyway). How do you change the text colour to plain black rather than the automatic hyperlinked blue? 

Example code that I’ve tried:

<a href="URL" style="colour: #000000;">display text</a>

In previous months (e.g. June/July 2023), I’ve found emails where I’ve been able to override this by simply changing the colour using the wyswig editor - but it doesn’t seem to be the case anymore? 

 

 


Taylor Tarpley
Community Manager
Forum|alt.badge.img+60
  • Community Manager
  • 2148 replies
  • October 10, 2023

Hi @Pez

 

Happy to hear the above worked for you! 

 

To be clear, you were also not able to change the link text color when operating to the Styles tab of your block and changing the link color? 

Thanks for participating in the Community!

-Taylor 


Forum|alt.badge.img+2
  • Contributor III
  • 5 replies
  • October 10, 2023

Thank you @Taylor Tarpley! I’ve managed to update it - I don’t usually access this section in Klaviyo as I’m able to update most of the items via wyswig. Good to know! 


Forum|alt.badge.img+2
  • Contributor I
  • 4 replies
  • February 12, 2025

Hi ​@Taylor Tarpley in above your response its changing all links color. i want to keep one link in blue with underline and another link should white color without under line. I am using {% web_view %} and {% unsubscribe %}