WordPress.org

Support

Support » Themes and Templates » [Resolved] Change color of text links

[Resolved] Change color of text links

  • Ray Davies
    Participant

    @ray-davies

    How can I change the colors of my content hyperlinks without messing up my main menu? I tried adding
    a:link {
    COLOR: #0000FF;
    }
    a:visited {
    COLOR: #800080;
    }
    a:hover {
    COLOR: #FF0000;
    }
    a:active {
    COLOR: #00FF00;
    }
    to my child-theme css but it totally screwed my main menu:-(
    Cheers guys

Viewing 2 replies - 1 through 2 (of 2 total)
  • WP
    Member

    @linuxpanda

    Use the following format to change the colour of the links in content area. 🙂

    .site-content .entry-content a {
    }
    
    .site-content .entry-content a:hover {
    }
    
    .site-content .entry-content a:active {
    }
    
    .site-content .entry-content a:visited {
    }
    Ray Davies
    Participant

    @ray-davies

    Magic!! Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Change color of text links’ is closed to new replies.