• Hello
    I love your Generate Press theme.

    However, I do not want it to style h2 in the Gutenberg block editor. It is currently forcing the h2 to uppercase.

    I have tried this code snippet, but it is not working.

    function unhook_parent_style() {

    wp_dequeue_style( 'generate-block-editor-styles-css' );
    wp_deregister_style( 'generate-block-editor-styles-css' );

    }
    add_action( 'wp_enqueue_scripts', 'unhook_parent_style', 20 );

    I can’t seem find the hook you are using to enqueue the block editor stylesheet. I would like to unhook it. Can you help?

    • This topic was modified 5 years, 6 months ago by Joanne.
Viewing 1 replies (of 1 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    If you don’t want GP to touch your editor styles, you can do this:

    add_action( 'after_setup_theme', function() {
        remove_action( 'enqueue_block_editor_assets', 'generate_enqueue_backend_block_editor_assets' );
    } );

    Let me know if you need more info ??

Viewing 1 replies (of 1 total)
  • The topic ‘Deregister editor styles (no uppercase h2)’ is closed to new replies.