WordPress.org

Ready to get started?Download WordPress

Forums

Changing link color and axing the underscore (6 posts)

  1. tunis
    Member
    Posted 9 years ago #

    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?

  2. southerngal
    Member
    Posted 9 years ago #

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

  3. Mark (podz)
    Support Maven
    Posted 9 years ago #

    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

  4. davejenbarnes
    Member
    Posted 9 years ago #

    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.

  5. davejenbarnes
    Member
    Posted 9 years ago #

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

  6. tunis
    Member
    Posted 9 years ago #

    Thanks everyone! :)
    Will give the suggestions a try.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.