How can I change the color of one link on the cart page"

New Member
4 0 0

Hi,

I want to hightlight one link on the cart page, how can I do that?

Thanks,
Mariel.

0 Likes
Shopify Partner
29 0 3

You should be able to go into your temple code. Find cart.liquid, find the link and add

<span style="red">LINK TEXT HERE</span> 

If it's a link, there will already be a tag that starts with <a href="..."> so put it just after that, and put the closing span tag becore the </a>

 

0 Likes
New Member
4 0 0

Thank you, Julia, for the reply!

I can't get the link to change the color, however. I have a line like that, where the word "ostuinfoga" should change the color:

<a href="/pages/ostuinfo"><span style="red">ostuinfoga</span></a>

Can you tell what's wrong?

Thanks!

0 Likes
Highlighted
Shopify Partner
26 0 6

The issue with the code you were given is that it should say <span style="color: red;">ostuinfoga</span>. The inline CSS styling needs a target with a matching value. Not just a value. Then it should work.

1 Like
New Member
4 0 0

Thanks, Chris! That did it!

0 Likes