Site logo

Archived topic

Changing link colors on Read theme

1 reply · Started by Diego on January 3, 2021

Viewing posts 1–2 of 2

I am currently trying to change the color of links to blue (usually the color of hyperlinks) however, it has changed all the links on my site to blue including those on the home page.

How can I make it so only links within blog posts are the standard hyperlink blue as opposed to everything on my site including the home page??

Hi,

How can I make it so only links within blog posts are the standard hyperlink blue as opposed to everything on my site including the home page??

To clarify: You want change the color of ALL of the links within single post pages?

If so, you can try this CSS:

body.single a {
color: red;
}

Change red to your preferred color.

Here's how to add CSS: https://docs.generatepress.com/article/adding-css/

This applies to ALL non-styled <a> within the page. If you only want to style the content links of single post pages you can try this instead:

body.single .content-area a {
color: red;
}
This archived topic is closed to new replies.