Skip to main content
Contributor I
October 1, 2023
Solved

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

  • October 1, 2023
  • 6 replies
  • 1792 views

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 

    6 replies

    ConnorBoAuthor
    Contributor I
    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
    Community Manager
    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 

    Contributor III
    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
    Community Manager
    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 

    Contributor III
    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! 

    Contributor IV
    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 %}