[Support request] Apply an effect only on body links

Home Forums Support [Support request] Apply an effect only on body links

Home Forums Support Apply an effect only on body links

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2062578
    NICOLE

    Hello! There is an easy way to apply a custom CSS only at main content (body) text links and NOT to all links in the website? (not buttons, not container links, menu ecc)?
    And I would like to avoid a CSS class in the html every time I write something.
    Thanks a lot!

    #2062771
    David
    Staff
    Customer Support

    Hi there,

    you can use this CSS:

    .entry-content p a {
        /* your link styles */
    }
    
    .entry-content p a:hover {
        /* your link hover styles */
    }

    This will target any Link inside a Paragraph thats within the post/pages content.

    #2062854
    NICOLE

    Uhh thanks a lot David.
    Worked like charm <3

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