Site logo

Archived topic

Don't apply CSS code on homepage

3 replies · Started by Victor on September 28, 2020

Viewing posts 1–4 of 4

Hello,

The other day I asked you about a CSS code to underline all the link texts of my web; you gave a code that works perfectly, but I want to not apply that code on my home page, in all the web yes but not in the homepage (my web is https://expertomascotas.com/). It is possible? Can you give me any modification of the CSS code? The code you gave me was that:

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

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

THank you very much :)

Hi there,

try this CSS instead:

body:not(.home) .entry-content a {
    text-decoration: underline;
}

body:not(.home) .entry-content a:hover {
    text-decoration: none;
}

Hello David,

Thanks, it works perfectly!!! :)

Thanks.

You're welcome

This archived topic is closed to new replies.