Site logo

[Resolved] Underline Text Links, exclude Navigation

Home Forums Support [Resolved] Underline Text Links, exclude Navigation

Home Forums Support Underline Text Links, exclude Navigation

  • This topic has 27 replies, 2 voices, and was last updated 6 years ago by Leo.
Viewing 15 posts - 1 through 15 (of 28 total)
  • Author
    Posts
  • #275721
    Tim

    I want to underline text links but exclude navigation from the underlining

    I have this but underlines nav as well:

    a, a:visited {
          text-decoration: underline !important;

    Thanks

    #275731
    CRISTO

    Just curious….I used to underline all my links, but that does not seem the general practice anymore. Wondering if that is correct.

    #275735
    Tim

    O.k, so I have

    .entry-content a {
        text-decoration: underline !important;
    }

    Which seem to work, but;

    .entry-content a:hover {
        text-decoration: none !important;
    }

    Does not

    #275758
    Tim

    Hello Cristo Rey,

    I think your correct in that underlining links does not happen so much anymore, I just needed in this instance

    #275762
    Leo
    Staff
    Customer Support

    Hi Tim,

    I think something like this would be better:

    p a:link, p a:hover, p a:active, p a:visited {
        text-decoration: underline;
    }

    Let me know.

    #275764
    CRISTO

    Thanks, Tim. I thought that was the case, just wanted to be sure. Since I am on page 624 on my site and have not underlined any links that is a relief!

    #275796
    Tim

    Thanks, Leo, that worked great.

    #275807
    Leo
    Staff
    Customer Support

    You’re welcome 🙂

    #354656
    Kristijan

    hi Leo,

    this last code you’ve provided is great

    can you please let us know:
    – how to avoid Site Title to be underlined when hovered using this code?

    – how to make Site Title to change color when being hovered?

    thanks

    #354660
    Leo
    Staff
    Customer Support

    1) Try:

    .inside-article p a:link,
    .inside-article p a:hover,
    .inside-article p a:active,
    .inside-article p a:visited {
        text-decoration: underline;
    }

    2) This should work:

    .main-title a:hover {
        color: #000000;
    }
    #354668
    Kristijan

    link underline when hovered now works in article, but not in the section.
    can it work in section also?

    Site Title changing color when hovered is not working

    here is my site:

    #354688
    Kristijan

    link underline when hovered now works in article, but not in the section.
    can it work in section also?

    Site Title changing color when hovered is not working

    here is my site:
    kristijangalekovic

    #354691
    Kristijan

    link underline when hovered now works in article, but not in the section.
    can it work in section also?

    Site Title changing color when hovered is not working

    here is my site:
    kristijangalekovic

    sorry, for wrong link in previous post

    #354744
    Leo
    Staff
    Customer Support

    Link underline is working to me in the link above.

    Can’t see the title hover CSS being added.

    Can you disable the caching plugin first?

    #354754
    Kristijan

    I’ve disabled WP Super Casche plugin now

    Link underline is not working in Sections (I’ve put section now on the page, please check it)>
    kristijangalekovic

    Title hover CSS is added
    picture

Viewing 15 posts - 1 through 15 (of 28 total)
  • The topic ‘Underline Text Links, exclude Navigation’ is closed to new replies.