global-styles-inline-cssに出力されない
-
WordPress6.9にアップデートしたところ、theme.jsonで設定したカラーパレットやフォント設定がglobal-styles-inline-cssに出力されなくなってしまいました。
Yoast SEOプラグインが干渉しているような挙動を確認していますが、どのように対処すればよいかご教授いただけますと幸いです。
wp_head()での出力で何かが起きているのかな?【状況】
・theme.jsonでは$schemaを利用しており、スキーマ上のエラーはないようで、エディタ上で赤く表示されることもない状態であった
(”$schema”: “https://schemas.wp.org/wp/6.8/theme.json”, “version”: 3)・WordPress6.8.3では問題なくカラーパレット/フォント設定がglobal-styles-inline-cssに反映されていた
・WordPress6.9にアップデート後、同じtheme.jsonがまったく反映されなくなった
・しかし、Yoast SEOプラグイン(バージョン:26.5)を無効化するとglobal-styles-inline-cssが正常に出力されるようになった
・WP6.8.3 の時も、WP6.9 に更新後も、Yoast SEO のバージョンはどちらも 26.5(変わらず)
—After I updated WordPress to 6.9, the color palette and font settings from my theme.json stopped appearing in the global-styles-inline-css.
I checked many things, and I found that this problem happens only when Yoast SEO (version 26.5) is active.【Details】
・My theme.json uses a schema, and there are no errors in the text editor.
・In WordPress 6.8.3, the colors and fonts appeared correctly.
・After updating to WordPress 6.9, the same theme.json does not work anymore.
・When I turn off Yoast SEO, the global styles appear normally again.
・Yoast SEO is version 26.5, and this version was the same in WP6.8.3 and WP6.9.
このトピックに返信するにはログインが必要です。