Title: Global Styles Mods &#8211; WordPress 5.9 fix
Author: WebMan Design | Oliver Juhas
Published: <strong>February 11, 2022</strong>
Last modified: December 13, 2025

---

Search plugins

![](https://ps.w.org/global-styles-mods/assets/icon.svg?rev=2677438)

# Global Styles Mods – WordPress 5.9 fix

 By [WebMan Design | Oliver Juhas](https://profiles.wordpress.org/webmandesign/)

[Download](https://downloads.wordpress.org/plugin/global-styles-mods.1.1.0.zip)

 * [Details](https://sna.wordpress.org/plugins/global-styles-mods/#description)
 * [Reviews](https://sna.wordpress.org/plugins/global-styles-mods/#reviews)
 *  [Installation](https://sna.wordpress.org/plugins/global-styles-mods/#installation)
 * [Development](https://sna.wordpress.org/plugins/global-styles-mods/#developers)

 [Support](https://wordpress.org/support/plugin/global-styles-mods/)

## 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](https://wordpress.org/news/2022/01/josephine/)(
   from [conversation about reported issues](https://github.com/WordPress/gutenberg/issues/38252)
   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](https://wordpress.org/news/2022/01/josephine/)
 * 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](https://make.wordpress.org/core/2022/01/08/updates-for-settings-styles-and-theme-json/#changes-to-the-global-stylesheet).)

**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](https://github.com/WordPress/gutenberg/issues/38252#issuecomment-1024348024).

## Screenshots

 * [[
 * Issues with font sizes after WordPress 5.9 update.

## Installation

 1. Unzip the plugin download file and upload `global-styles-mods` folder into the `/
    wp-content/plugins/` directory.
 2. Activate the plugin through the _“Plugins”_ menu in WordPress.
 3. Plugin has no options and works immediately after activation. The plugin requires
    WordPress of version 5.9 to run. If you experienced issues with font sizes and/
    or colors after updating to WordPress 5.9, this plugin should fix them – that’s
    how you know the plugin is working.

## FAQ

### It does not work, help!

The plugin requires WordPress 5.9 to work.

Also, it works quietly behind the scenes and simply modifies WordPress global CSS
styles code – check your website page source in the browser for comparison when 
plugin is active vs. when it’s inactive.

If you experienced issues with font sizes and/or colors after updating to WordPress
5.9, this plugin should fix them – that’s how you know the plugin is doing its magic.

## Reviews

![](https://secure.gravatar.com/avatar/16f83f29fa0e18e6804e389caf30e4b0da19de46ecb570873571191071fa6fa6?
s=60&d=retro&r=g)

### 󠀁[This plugin does what Gutenberg should do by default](https://wordpress.org/support/topic/this-plugin-does-what-gutenberg-should-do-by-default/)󠁿

 [Gyurmey](https://profiles.wordpress.org/gyurmey/) October 3, 2023

I don’t understand the decision to move global variables to the body element. This
plugin moves them to the :root element and does it well. Thanks!

![](https://secure.gravatar.com/avatar/2610cabe2687c80407c6fa042210a69a2a2bc9eaeb98b78812a1ec89fbdefd95?
s=60&d=retro&r=g)

### 󠀁[OMG Bless you for making this!](https://wordpress.org/support/topic/omg-bless-you-for-making-this/)󠁿

 [wp-sleuth](https://profiles.wordpress.org/wp-sleuth/) June 2, 2023 1 reply

I spent the last few hours trying to get my font sizes to change before realizing
everything I did would be inevitably overridden. Your code fixed everything. THANK
YOU!!!!!!!!

![](https://secure.gravatar.com/avatar/23c8adf15dc66638561317627ae3da4d27198cf40a2dfbb2a4c612f3e31a72a0?
s=60&d=retro&r=g)

### 󠀁[Great plugin, fixes issues in WP 5.9](https://wordpress.org/support/topic/great-plugin-fixes-issues-in-wp-5-9/)󠁿

 [Bill Erickson](https://profiles.wordpress.org/billerickson/) February 22, 2022
1 reply

If your theme was built prior to WP 5.9, you might find that updating to WP 5.9+
breaks some styling on your site. This plugin fixes it.

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/global-styles-mods/reviews/)

## Contributors & Developers

“Global Styles Mods – WordPress 5.9 fix” is open source software. The following 
people have contributed to this plugin.

Contributors

 *   [ WebMan Design | Oliver Juhas ](https://profiles.wordpress.org/webmandesign/)

“Global Styles Mods – WordPress 5.9 fix” has been translated into 1 locale. Thank
you to [the translators](https://translate.wordpress.org/projects/wp-plugins/global-styles-mods/contributors)
for their contributions.

[Translate “Global Styles Mods – WordPress 5.9 fix” into your language.](https://translate.wordpress.org/projects/wp-plugins/global-styles-mods)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/global-styles-mods/),
check out the [SVN repository](https://plugins.svn.wordpress.org/global-styles-mods/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/global-styles-mods/)
by [RSS](https://plugins.trac.wordpress.org/log/global-styles-mods/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

Please see the [`changelog.md` file](https://github.com/webmandesign/global-styles-mods/blob/master/changelog.md)
for details.

## Meta

 *  Version **1.1.0**
 *  Last updated **4 months ago**
 *  Active installations **90+**
 *  WordPress version ** 5.9 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.0 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/global-styles-mods/) and [Italian](https://it.wordpress.org/plugins/global-styles-mods/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/global-styles-mods)
 * Tags
 * [colors](https://sna.wordpress.org/plugins/tags/colors/)[fix](https://sna.wordpress.org/plugins/tags/fix/)
   [font size](https://sna.wordpress.org/plugins/tags/font-size/)[global styles](https://sna.wordpress.org/plugins/tags/global-styles/)
   [gutenberg](https://sna.wordpress.org/plugins/tags/gutenberg/)
 *  [Advanced View](https://sna.wordpress.org/plugins/global-styles-mods/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/global-styles-mods/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/global-styles-mods/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/global-styles-mods/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/global-styles-mods/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/global-styles-mods/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/global-styles-mods/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/global-styles-mods/reviews/)

## Contributors

 *   [ WebMan Design | Oliver Juhas ](https://profiles.wordpress.org/webmandesign/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/global-styles-mods/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.webmandesign.eu/contact/#donation)