Change default color of hyperlinks

  • Unknown's avatar

    Hi there. I have http://cheshmandaz.org with customization. Question: Can I change the default color of hyperlinks from current grey or so to NAVY BLUE? And how… I am relatively inexperienced in CSS issues. Thanks a lot.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there, go to Appearance > Customize > CSS, delete all the informational text in that window, and paste in the following custom CSS to change all of your site links to navy blue. I’ve used “red” as a demo color so you can see what all will change. Once you are satisfied that all of that is what you want changed, you can change “red” to “navy blue”. When you do, you are going to see that the links do not look too blue really.

    a, a:visited {
        color: red !important;
    }

    You can also try just using “navy” as the color, which is a bit brighter blue.

    If you do not want all the links changed to blue, please let us know exactly which link you want blue, and we can then target those specifically.

  • Unknown's avatar

    Thanks so much. Now I have learned the way. I tried it but it changes the color of all titles and menu bar items. I JUST WANTED to change the color of the hyperlinks INSIDE A POST/TEXT. Nothing else…

  • Unknown's avatar

    Ok, do you also want the links on the single posts, such as here to also be that same color?

    This changes just the font page:

    .catnewsMainStory a, .catnewsMainStory a:visited {
        color: #d08d36 !important;
    }

    This would change the front page, category pages, single posts and pages.

    .catnewsMainStory a, .catnewsMainStory a:visited, #lead a, #lead a:visited, .subfeature a, .subfeature a:visited, .cat-excerpt a, .cat-excerpt a:visited, .entry a, .entry a:visited {
        color: #d08d36 !important;
    }
  • Unknown's avatar

    Thank you… ONLY on single posts – NOT titles or elsewhere… ONLY in single posts…

  • Unknown's avatar

    To change the color ONLY in the content on single post pages, then use the following:

    .entry a, .entry a:visited {
        color: #d08d36;
    }
    .tags a, .tags a:visited {
        color: #4e6b7a;
    }

    The second rule above excludes the tags and categories at the bottom of the single posts.

  • Unknown's avatar

    Sorry to bother again…
    This is VERY GOOD
    a, a:visited {
    color: blue !important;
    }
    Just NOT for the blog’s name and the menu… How can I exclude these two?

  • Unknown's avatar

    I think now it looks good, very good… I really appreciate your time

  • Unknown's avatar
  • The topic ‘Change default color of hyperlinks’ is closed to new replies.