• I noticed when picking a color from the color picker WordPress adds !important statements to all css styles. This seems like a bad idea. What is the reason for it? And how can we eliminate that?

    For example:

    
    .has-pale-pink-color {
        color: var(--wp--preset--color--pale-pink) !important;
    }
    
    • This topic was modified 3 years, 1 month ago by polyfade.
    • This topic was modified 3 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    If you haven’t, I recommend asking at your theme’s support so the theme’s developers and support community can help you with this.

Viewing 1 replies (of 1 total)
  • The topic ‘Why !important statements on all styles?’ is closed to new replies.