Hyperlink color – how do I change it?

Posted in: Newspaper
Post count: 2

I must be being daft or something… I can’t see how to change the color of the hyperlinked text in my posts.

The newspaper theme panel seems to offer most settings however I can’t change the colour of the post text!

Any ideas anyone?

Thanks
Rob

Post count: 20688

Hi,

The links color is inherited from the theme accent color
https://www.screencast.com/t/r0q1z95AHW9g
If you would like to change it for the post content only, you could try a code like this
https://www.screencast.com/t/lhZEcFhhfBIG
Use the color you want in the code if you decide to use it, then enter it in Theme panel->Custom CSS

.td-post-content a {
color: yellow;
}

Thanks

Post count: 2

Thanks Simon – thats perfect!

Post count: 494

Dear Simion,

Is there a similar code for pages?

Thanks

Post count: 20688

Hi,


@meri
A similar code for pages would be this one

.td-page-content a {
color: yellow;
}

Thanks

Post count: 494

Thanks Simion but it doesn’t work, the color is still wrong, even after emptying the cache…

Post count: 494

To be more specific, it works on the mobile version but not on the desktop one

Post count: 20688

Hi,

That will work for links inserted in pages through the editor
https://www.screencast.com/t/ljfzczsUiw4
https://www.screencast.com/t/EBLNbapaFoiX
If you could provide a link to a page where you would like to change the link color, I will check why the code is not applying. Maybe a different solution is needed.

Thanks

Post count: 494

Hi Simion,

The problem is that I use Tagdiv Composer for pages, not the WP editor…

You can have a look at this page for example: https://www.coupdepoker.com/mentions-legales-cgu/
There’s a link under the word “Adictel”

Thanks for your help

Post count: 20688

Hi,

Then you could set a color for the links as you make them. I see a text with title is used in that page, try it like this
https://www.screencast.com/t/OqhKSycTV
Or use a code like this to change the color of all the links in text with titles at once
https://www.screencast.com/t/4fFjYjzVrzC

.td_block_text_with_title a {
color: yellow;
}

Thanks

Post count: 494

It works! Thanks 🙂

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.