[Resolved] Disabling GP editor theme for Gutenberg

Home Forums Support [Resolved] Disabling GP editor theme for Gutenberg

Home Forums Support Disabling GP editor theme for Gutenberg

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #840090
    ShotaCat

    Hello,

    I was wondering how I could disable GP’s editor theming for Gutenberg?

    The content background color can be distracting and also clips into the admin menu if I use a custom one.

    Screenshot

    #840231
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this function a try:

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

    Let me know ๐Ÿ™‚

    #840255
    ShotaCat

    Awesome! That did the trick.

    Thanks so much.

    #840270
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.