Title: Global Styles Mods &#8211; WordPress 5.9 fix
Author: WebMan Design | Oliver Juhas
Published: <strong>11. veljače 2022.</strong>
Last modified: 13. prosinca 2025.

---

Pretraga dodataka

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

# Global Styles Mods – WordPress 5.9 fix

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

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

 * [Detalji](https://hr.wordpress.org/plugins/global-styles-mods/#description)
 * [Recenzije](https://hr.wordpress.org/plugins/global-styles-mods/#reviews)
 *  [Instalacija](https://hr.wordpress.org/plugins/global-styles-mods/#installation)
 * [Razvoj](https://hr.wordpress.org/plugins/global-styles-mods/#developers)

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

## Opis

#### 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).

## Snimke zaslona

[⌊Issues with font sizes after WordPress 5.9 update.⌉⌊Issues with font sizes after
WordPress 5.9 update.⌉[

Issues with font sizes after WordPress 5.9 update.

## Instalacija

 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.

## Pitanja i odgovori

### 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.

## Recenzije

![](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/) 03. listopada 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/) 02. lipnja 2023. 1 odgovor

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/) 22. veljače 2022.
1 odgovor

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.

 [ Pročitajte sve 3 recenzije ](https://wordpress.org/support/plugin/global-styles-mods/reviews/)

## Suradnici i Programeri

“Global Styles Mods – WordPress 5.9 fix” je softver otvorenog koda. Sljedeće osobe
su doprinijele ovom dodatku.

Suradnici

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

“Global Styles Mods – WordPress 5.9 fix” je preveden na 1 jezik. Zahvala [prevoditeljima](https://translate.wordpress.org/projects/wp-plugins/global-styles-mods/contributors)
za njihov doprinos.

[Prevedite “Global Styles Mods – WordPress 5.9 fix” na svoj jezik.](https://translate.wordpress.org/projects/wp-plugins/global-styles-mods)

### Zainteresirani ste za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/global-styles-mods/),
pogledajte [SVN spremište](https://plugins.svn.wordpress.org/global-styles-mods/)
ili se pretplatite na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/global-styles-mods/)
od [RSS](https://plugins.trac.wordpress.org/log/global-styles-mods/?limit=100&mode=stop_on_copy&format=rss).

## Dnevnik promjena

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

## Meta

 *  Version **1.1.0**
 *  Zadnje ažuriranje **prije 11 mjeseci**
 *  Aktivnih instalacija **90+**
 *  WordPress inačica ** 5.9 ili viša **
 *  Testirano do **6.9.11**
 *  PHP inačica ** 7.0 ili viša **
 *  Jezici
 * [English (US)](https://wordpress.org/plugins/global-styles-mods/) i [Italian](https://it.wordpress.org/plugins/global-styles-mods/).
 *  [Prevedite na vaš jezik](https://translate.wordpress.org/projects/wp-plugins/global-styles-mods)
 * Oznaka
 * [colors](https://hr.wordpress.org/plugins/tags/colors/)[fix](https://hr.wordpress.org/plugins/tags/fix/)
   [font size](https://hr.wordpress.org/plugins/tags/font-size/)[global styles](https://hr.wordpress.org/plugins/tags/global-styles/)
   [gutenberg](https://hr.wordpress.org/plugins/tags/gutenberg/)
 *  [Napredni pogled](https://hr.wordpress.org/plugins/global-styles-mods/advanced/)

## Ocjena

 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/)

## Suradnici

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

## Podrška

Želite nešto reći? Potrebna vam je pomoć?

 [Pregledaj forum za podršku](https://wordpress.org/support/plugin/global-styles-mods/)

## Doniraj

Želite li podržati napredak ovog dodatka?

 [ Donirajte ovom dodatku ](https://www.webmandesign.eu/contact/#donation)