Streaming live at 10am (PST)

Styling dynamic link colour of a CMS Rich Text Box

#1

Hi all,

I have created a magazine template with CMS options, and want each of the blog posts to have a custom background colour + custom text colour. This works very well with the ‘Collection field’ element and all the Rich Text elements change colour accordingly. However, somehow the link element overwrites the default colour.

https://fontanel-2019.webflow.io/posts/sudan-archives-i-can-play-the-violin-and-be-lit

Is there a way to overwrite this so that it also makes use of the custom colour I have added to the post?

Thanks in advance!

#2

Have you tried adding in custom code

a {
color: unset;
text-decoration: unset;
}

This should remove default styling of links in browser, and then you apply your styles.

?

#3

This works beautifully! Thanks @pepperclip!!

#4

You’re welcome :wink:
Nice use of GT america in your site btw ! And nice layout as well.