Why won't my links stay underlined on my site?

9 replies
  • WEB DESIGN
  • |
Hi Warriors,

My links won't stay underlined on my site and i was just wondering if anyone had any idea why?

Thanks,
Shannon
#links #site #stay #underlined
  • Profile picture of the author phpbbxpert
    My guess would be the way the theme is coded. It's probably written to treat links that way in the CSS.

    Or it could be some plug-in feature doing it, if it happens in all themes.

    The first thing you or we need to know is the source code and so we can see how it is coded to treat links. Or at least a link to the site so we can check the source code.
    {{ DiscussionBoard.errors[3002766].message }}
  • Profile picture of the author Shannon Spoon
    Here is a link to my site Bushnell Pro 1600 Golf Laser Rangefinder Review | Laser Golf Range Finder Reviews

    The link at the very bottom is underlined but the other two are not.

    Thanks,
    Shannon
    {{ DiscussionBoard.errors[3002827].message }}
  • Profile picture of the author phpbbxpert
    Because you visited them.

    In your style sheet for the theme it is specified that visited links have no decoration eg. underline.

    h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {
    font-style:normal;
    font-weight:normal;
    text-decoration:none;


    }



    You will need to edit this and change
    text-decoration:none;

    to

    text-decoration:underline;
    {{ DiscussionBoard.errors[3002861].message }}
    • Profile picture of the author Shannon Spoon
      Originally Posted by phpbbxpert View Post

      Because you visited them.

      In your style sheet for the theme it is specified that visited links have no decoration eg. underline.



      You will need to edit this and change
      text-decoration:none;

      to

      text-decoration:underline;
      Thanks but how exactly do i do that?
      {{ DiscussionBoard.errors[3002913].message }}
  • Profile picture of the author RichKent
    In the back end of Wordpress Go to Appearance -> Editor

    Then select the css file - should be names style.css

    search for text-decoration:none; and simply delete it. No need to replace it with text-decoration:underline; as links are underlined by default.

    Make sure you only delete: text-decoration:none;

    don't delete the closing bracket!
    {{ DiscussionBoard.errors[3002977].message }}
    • Profile picture of the author Shannon Spoon
      Thanks but there are several text-decoration:none; how do i delete the right one or do i delete all of them?


      Originally Posted by RichKent View Post

      In the back end of Wordpress Go to Appearance -> Editor

      Then select the css file - should be names style.css

      search for text-decoration:none; and simply delete it. No need to replace it with text-decoration:underline; as links are underlined by default.

      Make sure you only delete: text-decoration:none;

      don't delete the closing bracket!
      {{ DiscussionBoard.errors[3002985].message }}
      • Profile picture of the author RichKent
        Originally Posted by Shannon Spoon View Post

        Thanks but there are several text-decoration:none; how do i delete the right one or do i delete all of them?
        If you want all of your anchor text to be underlined all the time, then simply delete them all.
        {{ DiscussionBoard.errors[3003013].message }}
  • Profile picture of the author RichKent
    Keep in mind that if you delete them all, then your logo will get underlined too.
    {{ DiscussionBoard.errors[3003016].message }}

Trending Topics