You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In instances where Gutenberg is disabled, by using a plugin/child theme with a filter, shouldn't we remove the loading of Gutenberg styles in Storefront? If blocks aren't used, there's no need to add the feature bloat on sites.
If required, the filters that'll be set to disable Gutenberg, include:
// disable for posts
add_filter('use_block_editor_for_post', '__return_false', 10);
// disable for post types
add_filter('use_block_editor_for_post_type', '__return_false', 10);
The text was updated successfully, but these errors were encountered:
@RiaanKnoetze I've made a few changes in #1122 to ensure that CSS is only loaded via Gutenberg hooks.
However, this is will still load the stylesheets in the frontend since WordPress doesn't currently include a way to know if blocks are being used in a post (that's different from checking whether the block editor is enabled).
I'm referring to the following lines of code:
storefront/inc/class-storefront.php
Lines 286 to 287 in 7f7e6be
In instances where Gutenberg is disabled, by using a plugin/child theme with a filter, shouldn't we remove the loading of Gutenberg styles in Storefront? If blocks aren't used, there's no need to add the feature bloat on sites.
If required, the filters that'll be set to disable Gutenberg, include:
The text was updated successfully, but these errors were encountered: