• This message keeps coming up again and again. Every time I dismiss it, and (nearly) every time I create/edit a post, it just comes right back.

    I found this support thread, but the posted solution no longer seems to work because the Enable Tips option is not there any more (or maybe I just can’t find it).

    How can I get rid of this damn message!? The only solution I’ve found so far is to install this plugin, but installing a plugin to fix a bug like this seems a bit ridiculous.

    • This topic was modified 3 years, 6 months ago by willvousden.
    • This topic was modified 3 years, 6 months ago by willvousden.
Viewing 2 replies - 1 through 2 (of 2 total)
  • @inquisitus U sure it ain’t there? I would request to check once more:

    View post on imgur.com

    Else,

    It can be disabled by using dispatch(‘core/nux’).disableTips() (NUX package) and action hook enqueue_block_editor_assets.

    You can use below code:

    For functions.php file, add this:

    function se334561_editor_tips() {
    
        wp_enqueue_script(
            'se334561-js',
            // --- to use in plugin ---
            // plugins_url('/disable-tips.js', __FILE__),
            get_stylesheet_directory_uri() . '/disable-tips.js',
            array('wp-blocks')
        );
    }
    add_action('enqueue_block_editor_assets', 'se334561_editor_tips');

    for disable-tips.js, add this:

    jQuery(document).ready(function(){
        var isVisible = wp.data.select('core/nux').areTipsEnabled()
        if (isVisible) {
            wp.data.dispatch('core/nux').disableTips();
        }
    });

    This should help.

    Thread Starter willvousden

    (@inquisitus)

    I don’t have an Options entry in that menu, only Preferences, which does not contain this option ?? I’m running a self-hosted instance of WordPress 5.8.

    https://i.imgur.com/lviMfqx.png
    https://i.imgur.com/9QXbgQg.png

    Thanks for the code – I will use this as a last resort, but again, I’d really prefer not to have to inject code manually to fix this bug.

    • This reply was modified 3 years, 6 months ago by willvousden.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Persistent “Welcome to the block editor” modal’ is closed to new replies.