Linux 软件免费装

Global Styles Mods - WordPress 5.9 fix

开发者 webmandesign
更新时间 2024年10月11日 16:42

标签

fix Gutenberg font size colors global styles wp5.9

下载

1.0.0 1.1.0

详情介绍:

Plugin's purpose This plugin fixes styling issues introduced in WordPress 5.9. 👍 When to use this plugin ✋ When NOT to use this plugin 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.

安装:

  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.

升级注意事项:

1.1.0 Added compatibility with Gutenberg plugin. 1.0.0 Initial release.

常见问题:

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.

更新日志:

Please see the changelog.md file for details.