Change Link Color Within Posts & Pages

  • Author
    Posts
  • #110894

    flyingdisc
    Member

    Hi,

    Regarding links within posts and pages – not the titles – is there some CSS I could add in Appearance > Customize > CSS, to change the link color?

    Any help is appreciated.

    Thanks

    The blog I need help with is perkinsdesigns.com.

    #111037

    thejohnparris
    Theme Author

    Hi, you can use this CSS to change the color:

    .post-content a {
        color: #33b26e;
    }

    Change the hex color code to your liking. Here’s a handy site for getting hex color codes: https://www.webpagefx.com/web-design/color-picker/

    #111047

    flyingdisc
    Member

    Hi John –

    Thanks you for your response.

    That CSS does indeed change the color of links, but it also changes the color of each post title, which I was hoping to avoid.

    Is it possible to change only the link color within a given post or page, but not the color of the post title?

    While the homepage template does retain the original color for each of the four selected posts, clicking on ‘blog’ shows that the color of each post title has changed.

    Any help is appreciated – thanks.

    #111078

    thejohnparris
    Theme Author

    Try this instead:

    .post-text a {
        color: your-color;
    }
    #111081

    flyingdisc
    Member

    Fantastic, that CSS code worked!

    Thanks for your help, John.

The topic ‘Change Link Color Within Posts & Pages’ is closed to new replies.