Skip to main content
Solved

Template tags and property colors

  • October 17, 2022
  • 3 replies
  • 261 views

Forum|alt.badge.img+3
  • Contributor I
  • 2 replies

Hi all, 

 

So I need to send the emails in different languages, so when I have changed the text on what the property, such as Unsubscribe and web view needs to display, the color of the text can not be changed. It shows up all in same color when I set up the email, but when I preview or send out, only that part is in different color. 

Any ideas on how to fix this?

 

 

Best answer by David To

Hey @Ieva,

Looks like you made error that @wernstrom did in the previously provided How to change link text color on NEW email template Community post. Seems like you’re actually using the default  web view variable as opposed to the one that generates a link/URL. This means you’ll want to use {% web_view_link %} to create this hyperlink experience.  

You can also find more details on the different forms of variable tags for their specific use case from our Guide to Template Tags and Variable Syntax Help Center article.

David

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

3 replies

David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • October 17, 2022

Hello @Ieva,

Welcome to the Klaviyo Community!

I’d suggest taking a look into the Community posts below that go over a similar subject:

Essentially, you should be able override those hyperlink coloring by wrapping them within an <a href></a> tag similar to what is mentioned in the How to Add an Unsubscribe Link to Klaviyo Emails Help Center article. So something like the following will override the hyperlinked text to black: <a href ="{% unsubscribe_link %}" style="color: #000000 !important;">Unsubscribe</a>.

I hope this helps!

David 


Forum|alt.badge.img+3
  • Author
  • Contributor I
  • 2 replies
  • October 18, 2022

Hi @David To 

 

Thanks, but unfortunately that doesn't work for me :(

 


David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • Answer
  • October 18, 2022

Hey @Ieva,

Looks like you made error that @wernstrom did in the previously provided How to change link text color on NEW email template Community post. Seems like you’re actually using the default  web view variable as opposed to the one that generates a link/URL. This means you’ll want to use {% web_view_link %} to create this hyperlink experience.  

You can also find more details on the different forms of variable tags for their specific use case from our Guide to Template Tags and Variable Syntax Help Center article.

David