• gamicord

    (@gamicord)


    Every time I want to create a new Post, the Gutenberg Tips Welcome Modal appears.

    How can I disable it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Before making any change, create a full backup of your site: (files and database).

    There are two ways to disable it:

    Easy:
    1. Adding this function to the functions.php file:

    function disable_gutenberg_tips() {
    	$script = "
    jQuery(document).ready(function(){
        var is_tip_visible = wp.data.select( 'core/nux' ).areTipsEnabled()
        if (is_tip_visible) {
            wp.data.dispatch( 'core/nux' ).disableTips();
        }
    });	
    	";
    	wp_add_inline_script( 'wp-blocks', $script );
    }
    add_action( 'enqueue_block_editor_assets', 'disable_gutenberg_tips' );

    Hard:
    2. There’s also this interesting thread:
    https://wordpress.stackexchange.com/questions/334559/deactivate-gutenberg-tips-forever-not-gutenberg

    Thread Starter gamicord

    (@gamicord)

    I am sometimes afraid to apply code that I do not understand, so that I do not mess things up.

    In this regard, I was hoping there will be a simple click-and-disable method by which we can disable that modal?

    In the absence of any such click-and-disable method, is there no further consequence to using this code?

    I mean that, would something else not be negatively affected when I apply this code? Would I not find out that certain other things like important dependencies dependent on this modal have also stopped working?

    Regards

    I created a plugin for this. https://wordpress.org/plugins/disable-welcome-messages-and-tips/
    Just enable it and you won’t get the messages again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Gutenberg Welcome Modal’ is closed to new replies.