Okay
  Public Ticket #3433235
Disable Gutenberg Editor feature not working with the last update of WooCommerce
Closed

Comments

  •  8
    benoitfouc33 started the conversation

    Hello there, since many years i'm using this feature "Disable Gutenberg Editor" on the Salient Builder's option theme (/wp-admin/admin.php?page=vc-general).

    Since the last update of WooCommerce, today, the 8.0 i see a lot of files who are loaded for the WooCoommerce Blocks Editor (gutenberg) (see attached screenshot).


    i try this snippet but that not working on the last update of WooC :

    function dequeue_useless_styles_scripts() {
                wp_dequeue_style( 'wp-block-library' );
                wp_dequeue_style( 'wp-block-library-theme' );
                wp_deregister_style( 'wc-block-editor' );
        wp_deregister_style( 'wc-blocks-style' );
                wp_dequeue_style( 'wc-blocks-style' );
    }
    add_action( 'wp_enqueue_scripts', 'dequeue_useless_styles_scripts', 99 );
    

    Is this possible to fix that ? because the "Disable Gutenberg Editor" option still checked.
    regards

    Attached files:  pastedImage.png

  •  9,206
    Tahir replied

    Hey Again,

    Try using this field and check: 

    4755739712.png

    Thanks 


    ThemeNectar Support Team 

  •  8
    benoitfouc33 replied

    Hello there, it's checked that remove the gutenberg for the posts and page but not for the news WooCommerce Block version

    regards

  •  9,206
    Tahir replied

    Hey Again,

    The new version seems to have added more . You can find all the handles using the "Query Monitor" Plugin: 

    2962190808.png

    Thanks.


    ThemeNectar Support Team 

  •  8
    benoitfouc33 replied

    Hi Tahir thanks for replying, so if i understand that will be fixed on futures updates ?

    regards

  •  9,206
    Tahir replied

    Escalating this to the developer to check if a quick fix is available.

    Thanks 


    ThemeNectar Support Team 

  •  1,107
    ThemeNectar replied

    Hey benoitfouc33,

    It looks like WooCommerce is loading a bunch of new stylesheets for v8 which are registered through the block.json for each block. Others have pointed this out here: https://github.com/woocommerce/woocommerce/issues/39658

    There's no workaround from the developers yet, but i'm sure they will address it soon within that github issue.

    Kind regards