Underline hyperlinks in text (page/post/widget)

Posted in: Newsmag
Post count: 11

Hi, I hope somebody can help me.

I wanted to underline only the hyperlinks in the body text of my posts/pages/widgets.

In the style.css I changed some code, but now all hyper links are underlined (menu/titles/footer/header). 🙁

I changed this part of the code:

a:active, a:focus { /* IE remove focus */ outline: none; } a { color: #4db2ec; text-decoration: underline !important; } a:hover { text-decoration: underline; } ins { background: white; text-decoration: underline; }

What did I do wrong or do I have to change?

Kind regards,

Bernard
Website: https://www.brazilie.rocks

  • This topic was modified 9 years by Bernard.
  • This topic was modified 9 years by Bernard.
  • This topic was modified 9 years by Bernard.
  • This topic was modified 9 years by Bernard.
  • This topic was modified 9 years by Bernard.
Post count: 22421

Hi,

If you only want the links inside your post content to be underlined, please add this code in the theme panel-> custom css box:
.td-post-content a{
text-decoration:underline!important;
}

Thank you!

Post count: 11

Hi Bogdan,

Thanks a lot for helping me out. It worked for post and pages, but It didn’t work for text in widgets/sidebars.

I did this:

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

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

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

Is there another code I can use for text in widgets/sidebar?

Kind regards,

Bernard

Post count: 23312

Hello

If you want to apply the same rule for Widgets section, you should use the class below and add the following properly, like this ->

.td-pb-span4 a {
text-decoration:underline!important;
}

The result is here -> https://www.screencast.com/t/ArEMDi5R6

Thanks for your understanding!

Post count: 11

Hi Catalin,

Thank you very much! It works perfect.

Kind regards,

Bernard

Post count: 103

Hello,

I wanna change only the colours of my hyperlinks in my posts and pages. I found some codes here posted by the TagDiv staff, but they change the color of everything (block titles ect).

My colourcode is #E84E1B.

Thank you!

Post count: 23312

Hello stinus,

Please provide your website URL and some useful screenshots to show me where exactly you want to change the hyperlinks color, so I will be able to provide a more accurate response.

Thanks for your understanding!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newsmag’ is closed to new topics and replies.