• Since updating wordpress to recent versions, All links in my website are underlined.
    I found this piece of code :

    <style id='global-styles-inline-css'>
    ....
    a:not(.wp-element-button){text-decoration: underline;}
    .....
    </style>

    where is this come from and how can I delete it?
    P.S: I don’t want to apply “text-decoration: none !important”. Why wordpress adds text styles forcibly?

    • This topic was modified 2 years, 3 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter xoex

    (@xoex)

    I found a fix for this, but I think it shouldn’t be default at first place.

    Add this line to theme.json :

    "link": {
    	"typography": {
    		"textDecoration": "none"
        }
    }

    This should be add under “elements” section under “styles” section. something like this :

    • styles
    • elements
    • link

    Can you share a link to your website? I’m not experiencing this on my version 6.0.1 websites.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Annoying underline applied to all a tags’ is closed to new replies.