classic-editor icon indicating copy to clipboard operation
classic-editor copied to clipboard

Remove Block Library styles when Classic Editor is used

Open maddisondesigns opened this issue 3 years ago • 1 comments

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 avatar Jul 15 '21 09:07 maddisondesigns

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.

kospl avatar Jan 23 '22 19:01 kospl

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 avatar May 10 '24 21:05 azaozz