Hi Everyone,
I have quite an annoying issue which i am sure is due to my lack of experience with CSS specificity… I am trying to make it so that all of the text links on my site have this chunky underline and on hover it highlights the whole word. Its working great and exactly the way i want it, but its also happening on every image, breadcrumb, icon - basically anything clickable. I managed to remove it from the breadcrumbs but i haven’t found a way to remove it from the entry featured image and entry title, and on the icons everywhere (social media icons and even the search icon). On the homepage you can really see it everywhere - below all buttons and clickable elements. If you could help me to fix it so that only my text links get this underline effect that would be awesome!
p.s. The underlines are showing up in my WordPress admin area as well!
Here is the main code for the underline:
a:link {
background-color: transparent;
color: inherit;
text-decoration: none;
transition: background .15s cubic-bezier(.33,.66,.66,1);
box-shadow: inset 0 -3px 0 rgba(247, 157, 32, .5);
overflow-wrap: break-word;
word-break: break-word;
word-wrap: break-word;
}
a:hover {
background-color: rgba(247, 157, 32, .5);
}
Thanks so much,
Jamie
