• Resolved Luis Supfort

    (@lupoll88)


    When I enable your plugin, it generates the CSS below.

    How I can disable it? I don’t want it on the front end.

    <link rel='stylesheet' id='eb-style-css-css' href='/wp-content/plugins/editor-blocks/dist/blocks.style.build.css?ver=1.1.7' type='text/css' media='all' />

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DannyCooper

    (@dannycooper)

    Hi @lupoll88,

    First you need to update to the latest version (1.1.8). Then you can add this code to your theme or custom plugin:

    /**
     * Remove Editor Blocks styles from the front end.
     */
    function remove_editor_blocks_assets() {
    	if ( ! is_admin() ) {
    		wp_dequeue_style( 'editor-blocks' );
    	}
    }
    
    add_action( 'enqueue_block_assets', 'remove_editor_blocks_assets' );
    • This reply was modified 6 years, 3 months ago by DannyCooper.

    Thanks for the help i also needed the same thing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable CSS Front End’ is closed to new replies.