Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Block Library styles when Classic Editor is used #164

Closed
maddisondesigns opened this issue Jul 15, 2021 · 2 comments
Closed

Remove Block Library styles when Classic Editor is used #164

maddisondesigns opened this issue Jul 15, 2021 · 2 comments

Comments

@maddisondesigns
Copy link

Hi,

Can you please also dequeue the wp-block-library and wp-block-library-theme scripts as well, once the Classic Editor is used.

Thanks.

@maddisondesigns maddisondesigns changed the title Remove Block LIbrary styles when Classic Editor is used Jul 15, 2021
@kospl
Copy link

kospl commented Jan 23, 2022

Style still added to header when classic editor enabled:

<link rel='stylesheet' id='wp-block-library-css' href='https://URLEDITED/wp-includes/css/dist/block-library/style.min.css?ver=5.8.3' type='text/css' media='all' />

Classic Editor 1.6.2
WordPress 5.8.3

What is best way to remove this?

This style impacts website performance as it's blocking, and absolutely not needed because classic editor is enabled by default, and users not allowed to switch editors.

@azaozz
Copy link
Contributor

azaozz commented May 10, 2024

Thanks for the comments.

Thinking this has been discussed many times. As the Classic Editor plugin supports editing in both editors, it would not be wise to remove anything that's needed by the block editor.

@azaozz azaozz closed this as completed May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants