changing color link

  • Unknown's avatar

    Hi, everyone. I need help with changing the link color for all areas associated with it (visited, hover, in widgets, etc). There has to be some selector which can change everything globally.

    Currently the link color is set to #ff706c. What can I do if I want to change it to, for example, #ea534f.

    Thanks

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

  • Hi there,

    The global selector is a. For example:

    a {
        color: #ff706c;
    }

    However, the element-specific selectors (e.g. .main-navigation a) override the global selectors. So, you still have to change the specific selectors.

    Try adding the following to your custom CSS.

    .site-title a, .main-navigation a, .widget-area .widget a, .entry-title a, .entry-meta a, .featured-image a, a.more-link, .paging-navigation a, .post-navigation a {
        color: #ea534f;
    }
  • Unknown's avatar

    Thanks, that works. I decided though to keep the following links as white:

    .site-title a,
    .main-navigation a,

    And this one as black:

    .entry-title a,

  • Unknown's avatar

    Oops, and for the purposes of my own notes (archive), I decided to keep this one as white, too:

    .post-navigation a

    Thanks again @ thabotswana2013. Your help is greatly appreciated.

  • You’re welcome :-) I’m glad I could help.

  • The topic ‘changing color link’ is closed to new replies.