Yoast SEO 27.0 causes plugin CSS not to load when using shortcodes (regression)
-
Hi team,
I’m reporting an issue we started experiencing immediately after updating to Yoast SEO 27.0.
SummaryWhen Yoast SEO 27.0 is active, CSS files from other plugins that are used via shortcodes are not loaded on the frontend. This causes severe layout issues in those plugins. Rolling back Yoast to the previous version resolves the problem instantly.
Details- The issue affects multiple, unrelated plugins (for example, a YotuWP – YouTube Gallery plugin version 1.3.14 and a Real3D Flipbook PDF Viewer PRO plugin version 4.11.2).
- In both cases:
- The plugins’ JavaScript loads correctly.
- The plugins’ internal CSS files are not enqueued / not loaded.
- As a result, the plugins render incorrectly (e.g. broken layout, infinite canvas resizing, etc.).
- The affected plugins have not been updated recently and have been stable for months.
- The problem only occurs when Yoast SEO 27.0 is active.
- If Yoast is disabled or rolled back to the previous version, the issue disappears.
Additional observations
- The plugins are inserted using shortcodes.
- The problem is specifically related to CSS not loading, not JavaScript.
- This suggests a timing or content-processing issue rather than a plugin compatibility problem.
- We are also using external caching (Cloudflare), but no changes were made there when the issue started.
- The workaround was to manually enqueue the missing plugin CSS from the theme, which confirms that the styles are simply not being loaded automatically.
Regression confirmation
After rolling back Yoast SEO to the previous version (pre-27.0), everything works as expected again, without any manual CSS enqueue.
Given the changelog for 27.0 mentions changes related to HTML handling and content processing, this may be affecting how shortcodes or content detection are handled when deciding which assets to load.
Expected behaviorActivating Yoast SEO should not prevent other plugins’ required CSS files from loading, especially when those plugins rely on shortcodes and have not changed.
Please let me know if you need any additional debugging information.
Thanks in advance for taking a look at this.
You must be logged in to reply to this topic.