Support » Fixing WordPress » How do I undo a link’s underline?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must edit the theme’s css style. Install Firebug Extension for Firefox in order to know exactly where you have to change.

    If you are only concerned with the post titles in your page, find this in your style sheet:

    /* main content elements */

    try adding this right below it:

    #main h2 a, a:visited {
    text-decoration: none;
    }

    I think that might remove just the underline from the titles.

    If you want to remove all of the underlines on all of the links, change this:

    a, a:visited {
    color: #2B6399;
    text-decoration: underline;
    }

    To this:

    a, a:visited {
    color: #2B6399;
    text-decoration: none;
    }

    Make a back-up copy first, just in case something doesn’t work out the way you wanted.

    Sounds weird, but when I press backspace after the link, the underline goes away…

    ClaytonJames,

    If this is the actual code

    <h2><span>Areas of Emphasis</span></h2>

    where do I post

    #main h2 a, a:visited {
    text-decoration: none;
    }

    Also, by style sheet do you mean the HTML setting?

    Thanks!

    What do you mean backspace after the link? And where? In the HTML setting?

    where do I post

    You must make the changes in the style.css file. You will need to acccess it with your ftp client or your file manager in the hosts control panel. Your style.css is located here:

    /wp-content/themes/cple/style.css

    find this in your style sheet:

    /* main content elements */

    try adding this right below it:

    #main h2 a, a:visited {
    text-decoration: none;
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I undo a link’s underline?’ is closed to new replies.