WordPress.org

Support

Support » Themes and Templates » Changing link color and axing the underscore

Changing link color and axing the underscore

  • I want to change links in my posts from the standard blue with a underscore to a simplier grey without the underscore. I’m assuming the code is in the “wp-layout.css” file, but can’t seem to find anything that would resemble it. Or should I be looking in the “index.php” files?

Viewing 5 replies - 1 through 5 (of 5 total)
  • southerngal
    Member

    @southerngal

    Hi,
    It’s usually your a:link code in the .CSS.
    text-decoration: none; should work in that line.

    Mark (podz)
    Support Maven

    @podz

    a {
    color: #339966;
    text-decoration: none;
    }
    a img {
    border: none;
    }
    a:visited {
    color: #339966;
    }
    a:hover {
    color: #339966;
    }
    that’s the code in your css – the colours may be different though 🙂
    http://www.tamba2.org.uk/graphicalcss

    davejenbarnes
    Member

    @davejenbarnes

    The information you are looking to change would need to be changed in the stylesheet that your index.php refers to… so, yes, that would be in the wp-layout.css file in this case. The reason you can’t seem to find anything that would resemble it is most likely because that information may not be listed in the css and therefore it will be the default for however a viewer’s particular browser would interpret the link tags. In order to get the links to appear how you want them, add the information to the wp-layout.css file and re-save or upload the file with your new information. This is a great place to start if you need to look for css resources.

    davejenbarnes
    Member

    @davejenbarnes

    wow, that was an explosion of responses!
    Hope some of them help!

    Thanks everyone! 🙂
    Will give the suggestions a try.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing link color and axing the underscore’ is closed to new replies.