WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Change color of a single link? (3 posts)

  1. joannecylau
    Member
    Posted 1 year ago #

    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!

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  3. joannecylau
    Member
    Posted 1 year ago #

    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;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic