[Support request] Don’t apply CSS code on homepage

Home Forums Support Don’t apply CSS code on homepage

  • This topic has 3 replies, 2 voices, and was last updated 5 months ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1461949
    Victor

    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 🙂

    #1461968
    David
    Staff
    Customer Support

    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;
    }
    #1462009
    Victor

    Hello David,

    Thanks, it works perfectly!!! 🙂

    Thanks.

    #1462140
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.