Archived topic
Remove underline from image link
5 replies · Started by William on August 17, 2021
Hello -
Is there a way to remove the blue link from when the image is
Here is the link: https://thetakeovr.com/best-assisted-opening-pocket-knife-to-buy-today/
When you hover over this image, a blue underline appears:
I have tried to edit the CSS but feel like I'm missing something simple.
Essentially, anytime I add an image and make it clickable to a url, I'd like the image to NOT have any underlined color.
Thank you!
Hi William,
This is due to this CSS which isn't coming from the theme:
.entry-content a:hover {
color: #F9F9F9;
background-color: #256eff;
}
I'd assume you added that?
Let me know :)
Hey Leo, yes I did. Is there a way to make the background color of a link not apply to wordpress images?
Try this:
.entry-content .wp-block-image a:hover {
background: none;
}
Looks like that works, thank you so much, Leo.
No problem :)