add feature remove gutenberg stylesheet
-
sometime we do not need this,
style id=”classic-theme-styles-inline-css”
style id=”global-styles-inline-css”
link rel=”stylesheet” id=”wp-block-library-css”
-
@3xploiton3 In Disable Components >> Disable Gutenberg module, there’s a checkbox at the bottom that says “Also disable frontend block styles / CSS files for the selected post types.”
did you test before ?
i already selected that option, it doesn’t work.View post on imgur.com
It’s been tested before, but perhaps not exhaustive enough. Here’s one with the default Twenty Twenty Four theme. Gutenberg is disabled on Posts, but remains enabled for Pages.
Post: https://ase-disable-gutenberg-owefiu.instawp.xyz/hello-world/
You’ll see ‘global-styles-inline-css’ is nowhere to be found, as it should… and styling of the post is messed up without it and other gutenberg-related stuff.Page: https://ase-disable-gutenberg-owefiu.instawp.xyz/sample-page/
You’ll find ‘global-styles-inline-css’ there.Which theme are you using?
bricks theme
live canvas theme doesn’t need gutenberg css alsofor testing pupose please check
https://credible-squirrel-b4415c.instawp.xyz/wp-admin/?dologin=1.pFpvD8Hn357MHFiu1ir4gLEtZn0g6IulI see. I suspect Bricks modifies a lot of how a standard theme work, and may be overriding what ASE does when it tries to disable Gutenberg styles through the usual theme-related hooks. I suggest contacting Bricks support to try and getting this resolved.
I’ve never used Live Canvas. I suspect it’s a similar issue and I suggest contacting their support as well.
Note that I’m not being lazy here… but judging at how Bricks (and Live Canvas) work, this looks more like an issue that can be solved on their end than in ASE.
disable gutenberg should be disable styles inline too,
View post on imgur.com
https://metabox.io/disable-gutenberg-without-using-plugins/
its doesnt matter theme what we used, in falcon plugin gives us option disabled Gutenberg completely, so in front end more eficient and lightweight, no bloatedI just tested with Falcon’s Disable Gutenberg feature with Bricks. It does not remove ‘global-styles-inline-css’. It also does not remove ‘wp-block-library-css’. e.g. https://ase-disable-gutenberg-owefiu.instawp.xyz/hello-world/
For reference, here’s the code that handles disabling Gutenberg in Falcon:
https://plugins.trac.wordpress.org/browser/falcon/tags/2.8.3/src/General.php#L24 (line 24-46)And here’s the code that handles disabling Gutenberg in ASE:
https://plugins.trac.wordpress.org/browser/admin-site-enhancements/tags/7.1.4/classes/class-disable-gutenberg.phpremove_gutenberg_assets() in Falcon is covered by disable_gutenberg_for_post_types_frontend() in ASE.
If you know of another plugin or snippet that can actually disable frontend CSS for Bricks, please share in your next reply. Otherwise, I revert to my original suggestion: try contacting Bricks support. You can share the URL of this support thread to Bricks support.
falcon its remove global style & classic on pages, not posts,
i forget to mention
https://credible-squirrel-b4415c.instawp.xyz/View post on imgur.com
So, are you saying that with Falcon enabled, Bricks is still loading block editor CSS on posts, and other post types? If so, I suggest contacting Bricks support to see if it’s something they can fix on their end.
- You must be logged in to reply to this topic.