Support » Themes and Templates » Change color of a single link?

  • Resolved joannecylau

    (@joannecylau)


    Hi there,

    I’m new to WordPress. I would like to know if it’s possible to change the color of a single link on my web site? The default color is fine for the rest of the site, but I would like to change one of the links to make it match the rest of the font of that page:

    http://www.zoology.ubc.ca/~dgmweb/dgmlab/people/lab-alumni/

    PS. I’ve created a child theme.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Forum Moderator

    It should be possible if you attach a new class name to the relevant link and then style that class via your child theme’s CSS.

    joannecylau

    (@joannecylau)

    Thanks! I added this to my child theme’s CSS and it worked great:

    #link-noformat {
    color: #373737;
    font-size: small;
    }

    a.noformat:hover {
    text-decoration:none;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change color of a single link?’ is closed to new replies.