Site logo

Archived topic

Underline Text Links, exclude Navigation

27 replies · Started by Tim on February 7, 2017

Viewing posts 1–15 of 28

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

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

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

Hello Cristo Rey,

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

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.

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!

Thanks, Leo, that worked great.

You're welcome :)

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

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;
}

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:

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

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

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?

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

This archived topic is closed to new replies.