WordPress 6.1 Update Forces Underline on Links
-
I’m testing the WordPress 6.1 update which was just released today and have noticed that after the update (and clearing caches etc…) many links are underlined even though they weren’t prior to the update. Not sure if this is something with Astra & WordPress 6.1 or whether it is all themes, as my sites all use Astra. Thought I’d mention it though as I am seeing it so far on every test site I have used. It’s most noticeable on the site title in the header and also any footer links using footer widgets etc…
On inspection, I see this in the CSS:
a:where(:not(.wp-element-button)) { text-decoration: underline; }
This code does not exist prior to the 6.1 update and is overriding the Astra CSS (it’s 2nd in the hierarchy list of CSS when inspecting a link).
Adding the opposite code in custom CSS is a workaround for others facing this issue until it’s resolved.
a:where(:not(.wp-element-button)) { text-decoration: none; }
- The topic ‘WordPress 6.1 Update Forces Underline on Links’ is closed to new replies.