Site logo

Archived topic

Link Underlining not consistent

3 replies · Started by Marius on July 3, 2022

Viewing posts 1–4 of 4

On this Website, on pages the links are not underlined.
But in posts, they are underlined.

How can i set, that the textlinks are always underlined, but not the links in the Amazon Boxes and not the links at the end of each page related posts?

Your single post links have underline is because of this CSS:

.single-post .entry-content a:not(.wp-block-button__link):not(.aawp-product__title) {
    text-decoration: underline;
}

If you want the same applies to your page and not apply to the related posts, change your CSS to this:

body .entry-content a:not(.wp-block-button__link):not(.aawp-product__title):not(.crp_link) {
    text-decoration: underline;
}

thanks, that worked.

No problem :)

This archived topic is closed to new replies.