I'm writing a plugin for WordPress and when I add a link, the underline won't go away. The theme I'm using is twentysixteen. Here is my html:
<a class="thisisunique" href="#" style="text-decoration:none;">some text</a>
I'm astounded that this doesn't work, since the text-decoration
is even inlined. I also included this in my CSS:
a.thisisunique, a.thisisunique:link, a.thisisunique:visited, a.thisisunique:hover, a.thisisunique:active, a.thisisunique:focus {
text-decoration: none !important;
}
I even included code from a developer of the theme (https://wordpress.org/support/topic/remove-underline-from-links-2/), who explained that the theme doesn't use text-decoration
, but border-bottom
to achieve underlines (for whatever reason):
.entry-content a, .entry-summary a, .page-content a, .comment-content a, .pingback, .comment-body > a, .textwidget a {
border-bottom: none;
}
but alas, that confounded underline remained.
What's also odd is that when I do text-decoration: overline;
, it actually adds the overline to the link.
What in the world am I missing?