Archived topic
Apply an effect only on body links
3 replies · Started by NICOLE on December 29, 2021
Viewing posts 1–4 of 4
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!
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.
Uhh thanks a lot David.
Worked like charm <3
Glad to be of help!
This archived topic is closed to new replies.