Global Styles Mods – WordPress 5.9 fix

Global Styles Mods – WordPress 5.9 fix Install Statistics

-11
0%
Today: 0 Yesterday: 11 All-time: 1,374 downloads
Global Styles Mods – WordPress 5.9 fix Icon

Try plugin: Global Styles Mods – WordPress 5.9 fix

We'll create fresh WordPress site with Global Styles Mods – WordPress 5.9 fix installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Global Styles Mods – WordPress 5.9 fix

Fixes styling issues in WordPress 5.9 modifying global styles code.

3


0


0


0


0

updated: 1 year ago
since: 2 years ago

Description

Plugin’s purpose

This plugin fixes styling issues introduced in WordPress 5.9.

👍 When to use this plugin

  • ✅ Your WordPress is of version 5.9 or newer
  • ✅ You are using a theme that supports block editor (Gutenberg) features such as preset font sizes and color palette
  • ✅ Your theme does not support full site editing (FSE) feature (from conversation about reported issues it seems they affect Gutenberg-ready themes only and FSE themes should be fine)
  • ✅ You experience font size or color issues on your website after WordPress 5.9 update
  • ✅ Your theme has not been updated to fix these issues

✋ When NOT to use this plugin

  • You are not using WordPress 5.9 or newer
  • Your theme was updated and is fixing the issues
  • Your theme does not support block editor features (such as preset color palette or font sizes)
  • Your theme is full site editing (FSE) ready
  • You don’t experience any font size or color issues on your website after updating to WordPress 5.9

Technical info

WordPress 5.9 started applying !important rule and is setting up CSS properties (CSS variables) within body selector in its global styles code. This rises the global styles specificity and may override styles coming from themes and plugins. (For more info about this change check “Updates for Settings, Styles, and theme.json” article.)

Global Styles Mods plugin lowers the specificity of WordPress 5.9 global CSS styles by removing !important rules and changing body to :root selector for setting up WordPress CSS properties (CSS variables).

It also enqueues the global styles early enough so your theme or plugin stylesheet have a better chance to override global styles with minimal effort.

The fix applied is coming from issue conversation in Gutenberg GitHub repository.