Deactivate Gutenberg tips forever - not Gutenberg Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Disable “Tips” popups when writing new postHow to check whether Gutenberg editor is installed or notCustom Gutenberg block is not showing up in inserter dialogModifying the Gutenberg Button BlockGutenberg somehow not loading in WP 5Wordpress Gutenberg blocks: Input fields are not editablegutenberg attributesGutenberg Block checkbox check-unckeck does not workGutenberg Block language translation does not workchange font in gutenbergGutenberg get block name
Writing a T-SQL stored procedure to receive 4 numbers and insert them into a table
What's called a person who works as someone who puts products on shelves in stores?
Preserving file and folder permissions with rsync
TV series episode where humans nuke aliens before decrypting their message that states they come in peace
Marquee sign letters
What is ls Largest Number Formed by only moving two sticks in 508?
Why does Java have support for time zone offsets with seconds precision?
Co-worker works way more than he should
Why did Israel vote against lifting the American embargo on Cuba?
Why I cannot instantiate a class whose constructor is private in a friend class?
All ASCII characters with a given bit count
Is a self contained air-bullet cartridge feasible?
Was Objective-C really a hindrance to Apple software development?
Where to find documentation for `whois` command options?
Coin Game with infinite paradox
What is the numbering system used for the DSN dishes?
How to compute a Jacobian using polar coordinates?
Why would the Overseers waste their stock of slaves on the Game?
Married in secret, can marital status in passport be changed at a later date?
How would you suggest I follow up with coworkers about our deadline that's today?
Putting Ant-Man on house arrest
What happened to Viserion in Season 7?
What does the black goddess statue do and what is it?
Like totally amazing interchangeable sister outfit accessory swapping or whatever
Deactivate Gutenberg tips forever - not Gutenberg
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Disable “Tips” popups when writing new postHow to check whether Gutenberg editor is installed or notCustom Gutenberg block is not showing up in inserter dialogModifying the Gutenberg Button BlockGutenberg somehow not loading in WP 5Wordpress Gutenberg blocks: Input fields are not editablegutenberg attributesGutenberg Block checkbox check-unckeck does not workGutenberg Block language translation does not workchange font in gutenbergGutenberg get block name
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I like Gutenberg a lot, however, the tips at the beginning of each page load
drives me mad. I would like to disable the nagging tips forever and ever via code.
Please don't post "Disable Gutenberg" plugin, I've already seen that. I want to do it via a couple of lines of code in my theme.
There must be a hook, but I couldn't find it.
Thanks for a hint.
block-editor
add a comment |
I like Gutenberg a lot, however, the tips at the beginning of each page load
drives me mad. I would like to disable the nagging tips forever and ever via code.
Please don't post "Disable Gutenberg" plugin, I've already seen that. I want to do it via a couple of lines of code in my theme.
There must be a hook, but I couldn't find it.
Thanks for a hint.
block-editor
add a comment |
I like Gutenberg a lot, however, the tips at the beginning of each page load
drives me mad. I would like to disable the nagging tips forever and ever via code.
Please don't post "Disable Gutenberg" plugin, I've already seen that. I want to do it via a couple of lines of code in my theme.
There must be a hook, but I couldn't find it.
Thanks for a hint.
block-editor
I like Gutenberg a lot, however, the tips at the beginning of each page load
drives me mad. I would like to disable the nagging tips forever and ever via code.
Please don't post "Disable Gutenberg" plugin, I've already seen that. I want to do it via a couple of lines of code in my theme.
There must be a hook, but I couldn't find it.
Thanks for a hint.
block-editor
block-editor
edited Apr 17 at 9:58
Glorfindel
3711712
3711712
asked Apr 17 at 6:34
user3135691user3135691
37917
37917
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Update #1:
After asking from @leymannx I checked how these settings are stored.
It turned out that settings are not permanent, they are saved in the browser as localStorage
.
key: WP_DATA_USER_id:
value: {
"core/nux":
"preferences":
"areTipsEnabled":false,
"dismissedTips":
,
//"core/edit-post"
//...
Update #2:
Gutenberg tips can be disabled by using dispatch('core/nux').disableTips()
(NUX package) and action hook enqueue_block_editor_assets
.
file functions.php:
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');
file disable-tips.js:
jQuery(document).ready(function()
var isVisible = wp.data.select('core/nux').areTipsEnabled()
if (isVisible)
wp.data.dispatch('core/nux').disableTips();
);
Is this globally for every user? Is there a way to configure this per code as well? So that when I ship a plugin to a client it deactivates the tips when this plugin gets activated?
– leymannx
Apr 17 at 7:01
@leymannx These are individual settings for each user.
– nmr
Apr 17 at 7:03
1
If it’s an option able checkbox in the admin area they’ll be away to toggle it for all as the values got to be stored somewhere you should in code be able to set that value for all users on init or something, try to find where it stores that value in the DB
– Daniel Vickers
Apr 17 at 7:40
1
@leymannx This would require additional code (js + php) which, after changingareTipsEnabled
, writes the state to DB and restores it when the user logs in.
– nmr
Apr 17 at 7:50
1
That is awesome, I'll try it out tomorrow and check the answer if it works. Thank you!
– user3135691
Apr 17 at 21:21
|
show 5 more comments
As @nmr found out this seems to be stored browser-wise only. Though I found a workaround to simply hide it via CSS. Quick and dirty.
functions.php
:
// Add backend styles for Gutenberg.
add_action('enqueue_block_editor_assets', 'gutenberg_editor_assets');
function gutenberg_editor_assets()
// Load the theme styles within Gutenberg.
wp_enqueue_style('my-gutenberg-editor-styles', get_theme_file_uri('/assets/gutenberg-editor-styles.css'), FALSE);
assets/gutenberg-editor-styles.css
:
.components-popover.nux-dot-tip
display: none !important;
Source: Creating theme editor styles for Gutenberg
Yes, this solution also came to my mind but as you have said: it's quick 'n dirty. Thank you for your help.
– user3135691
Apr 17 at 9:49
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "110"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwordpress.stackexchange.com%2fquestions%2f334559%2fdeactivate-gutenberg-tips-forever-not-gutenberg%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Update #1:
After asking from @leymannx I checked how these settings are stored.
It turned out that settings are not permanent, they are saved in the browser as localStorage
.
key: WP_DATA_USER_id:
value: {
"core/nux":
"preferences":
"areTipsEnabled":false,
"dismissedTips":
,
//"core/edit-post"
//...
Update #2:
Gutenberg tips can be disabled by using dispatch('core/nux').disableTips()
(NUX package) and action hook enqueue_block_editor_assets
.
file functions.php:
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');
file disable-tips.js:
jQuery(document).ready(function()
var isVisible = wp.data.select('core/nux').areTipsEnabled()
if (isVisible)
wp.data.dispatch('core/nux').disableTips();
);
Is this globally for every user? Is there a way to configure this per code as well? So that when I ship a plugin to a client it deactivates the tips when this plugin gets activated?
– leymannx
Apr 17 at 7:01
@leymannx These are individual settings for each user.
– nmr
Apr 17 at 7:03
1
If it’s an option able checkbox in the admin area they’ll be away to toggle it for all as the values got to be stored somewhere you should in code be able to set that value for all users on init or something, try to find where it stores that value in the DB
– Daniel Vickers
Apr 17 at 7:40
1
@leymannx This would require additional code (js + php) which, after changingareTipsEnabled
, writes the state to DB and restores it when the user logs in.
– nmr
Apr 17 at 7:50
1
That is awesome, I'll try it out tomorrow and check the answer if it works. Thank you!
– user3135691
Apr 17 at 21:21
|
show 5 more comments
Update #1:
After asking from @leymannx I checked how these settings are stored.
It turned out that settings are not permanent, they are saved in the browser as localStorage
.
key: WP_DATA_USER_id:
value: {
"core/nux":
"preferences":
"areTipsEnabled":false,
"dismissedTips":
,
//"core/edit-post"
//...
Update #2:
Gutenberg tips can be disabled by using dispatch('core/nux').disableTips()
(NUX package) and action hook enqueue_block_editor_assets
.
file functions.php:
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');
file disable-tips.js:
jQuery(document).ready(function()
var isVisible = wp.data.select('core/nux').areTipsEnabled()
if (isVisible)
wp.data.dispatch('core/nux').disableTips();
);
Is this globally for every user? Is there a way to configure this per code as well? So that when I ship a plugin to a client it deactivates the tips when this plugin gets activated?
– leymannx
Apr 17 at 7:01
@leymannx These are individual settings for each user.
– nmr
Apr 17 at 7:03
1
If it’s an option able checkbox in the admin area they’ll be away to toggle it for all as the values got to be stored somewhere you should in code be able to set that value for all users on init or something, try to find where it stores that value in the DB
– Daniel Vickers
Apr 17 at 7:40
1
@leymannx This would require additional code (js + php) which, after changingareTipsEnabled
, writes the state to DB and restores it when the user logs in.
– nmr
Apr 17 at 7:50
1
That is awesome, I'll try it out tomorrow and check the answer if it works. Thank you!
– user3135691
Apr 17 at 21:21
|
show 5 more comments
Update #1:
After asking from @leymannx I checked how these settings are stored.
It turned out that settings are not permanent, they are saved in the browser as localStorage
.
key: WP_DATA_USER_id:
value: {
"core/nux":
"preferences":
"areTipsEnabled":false,
"dismissedTips":
,
//"core/edit-post"
//...
Update #2:
Gutenberg tips can be disabled by using dispatch('core/nux').disableTips()
(NUX package) and action hook enqueue_block_editor_assets
.
file functions.php:
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');
file disable-tips.js:
jQuery(document).ready(function()
var isVisible = wp.data.select('core/nux').areTipsEnabled()
if (isVisible)
wp.data.dispatch('core/nux').disableTips();
);
Update #1:
After asking from @leymannx I checked how these settings are stored.
It turned out that settings are not permanent, they are saved in the browser as localStorage
.
key: WP_DATA_USER_id:
value: {
"core/nux":
"preferences":
"areTipsEnabled":false,
"dismissedTips":
,
//"core/edit-post"
//...
Update #2:
Gutenberg tips can be disabled by using dispatch('core/nux').disableTips()
(NUX package) and action hook enqueue_block_editor_assets
.
file functions.php:
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');
file disable-tips.js:
jQuery(document).ready(function()
var isVisible = wp.data.select('core/nux').areTipsEnabled()
if (isVisible)
wp.data.dispatch('core/nux').disableTips();
);
edited Apr 18 at 9:11
answered Apr 17 at 6:52
nmrnmr
1,877214
1,877214
Is this globally for every user? Is there a way to configure this per code as well? So that when I ship a plugin to a client it deactivates the tips when this plugin gets activated?
– leymannx
Apr 17 at 7:01
@leymannx These are individual settings for each user.
– nmr
Apr 17 at 7:03
1
If it’s an option able checkbox in the admin area they’ll be away to toggle it for all as the values got to be stored somewhere you should in code be able to set that value for all users on init or something, try to find where it stores that value in the DB
– Daniel Vickers
Apr 17 at 7:40
1
@leymannx This would require additional code (js + php) which, after changingareTipsEnabled
, writes the state to DB and restores it when the user logs in.
– nmr
Apr 17 at 7:50
1
That is awesome, I'll try it out tomorrow and check the answer if it works. Thank you!
– user3135691
Apr 17 at 21:21
|
show 5 more comments
Is this globally for every user? Is there a way to configure this per code as well? So that when I ship a plugin to a client it deactivates the tips when this plugin gets activated?
– leymannx
Apr 17 at 7:01
@leymannx These are individual settings for each user.
– nmr
Apr 17 at 7:03
1
If it’s an option able checkbox in the admin area they’ll be away to toggle it for all as the values got to be stored somewhere you should in code be able to set that value for all users on init or something, try to find where it stores that value in the DB
– Daniel Vickers
Apr 17 at 7:40
1
@leymannx This would require additional code (js + php) which, after changingareTipsEnabled
, writes the state to DB and restores it when the user logs in.
– nmr
Apr 17 at 7:50
1
That is awesome, I'll try it out tomorrow and check the answer if it works. Thank you!
– user3135691
Apr 17 at 21:21
Is this globally for every user? Is there a way to configure this per code as well? So that when I ship a plugin to a client it deactivates the tips when this plugin gets activated?
– leymannx
Apr 17 at 7:01
Is this globally for every user? Is there a way to configure this per code as well? So that when I ship a plugin to a client it deactivates the tips when this plugin gets activated?
– leymannx
Apr 17 at 7:01
@leymannx These are individual settings for each user.
– nmr
Apr 17 at 7:03
@leymannx These are individual settings for each user.
– nmr
Apr 17 at 7:03
1
1
If it’s an option able checkbox in the admin area they’ll be away to toggle it for all as the values got to be stored somewhere you should in code be able to set that value for all users on init or something, try to find where it stores that value in the DB
– Daniel Vickers
Apr 17 at 7:40
If it’s an option able checkbox in the admin area they’ll be away to toggle it for all as the values got to be stored somewhere you should in code be able to set that value for all users on init or something, try to find where it stores that value in the DB
– Daniel Vickers
Apr 17 at 7:40
1
1
@leymannx This would require additional code (js + php) which, after changing
areTipsEnabled
, writes the state to DB and restores it when the user logs in.– nmr
Apr 17 at 7:50
@leymannx This would require additional code (js + php) which, after changing
areTipsEnabled
, writes the state to DB and restores it when the user logs in.– nmr
Apr 17 at 7:50
1
1
That is awesome, I'll try it out tomorrow and check the answer if it works. Thank you!
– user3135691
Apr 17 at 21:21
That is awesome, I'll try it out tomorrow and check the answer if it works. Thank you!
– user3135691
Apr 17 at 21:21
|
show 5 more comments
As @nmr found out this seems to be stored browser-wise only. Though I found a workaround to simply hide it via CSS. Quick and dirty.
functions.php
:
// Add backend styles for Gutenberg.
add_action('enqueue_block_editor_assets', 'gutenberg_editor_assets');
function gutenberg_editor_assets()
// Load the theme styles within Gutenberg.
wp_enqueue_style('my-gutenberg-editor-styles', get_theme_file_uri('/assets/gutenberg-editor-styles.css'), FALSE);
assets/gutenberg-editor-styles.css
:
.components-popover.nux-dot-tip
display: none !important;
Source: Creating theme editor styles for Gutenberg
Yes, this solution also came to my mind but as you have said: it's quick 'n dirty. Thank you for your help.
– user3135691
Apr 17 at 9:49
add a comment |
As @nmr found out this seems to be stored browser-wise only. Though I found a workaround to simply hide it via CSS. Quick and dirty.
functions.php
:
// Add backend styles for Gutenberg.
add_action('enqueue_block_editor_assets', 'gutenberg_editor_assets');
function gutenberg_editor_assets()
// Load the theme styles within Gutenberg.
wp_enqueue_style('my-gutenberg-editor-styles', get_theme_file_uri('/assets/gutenberg-editor-styles.css'), FALSE);
assets/gutenberg-editor-styles.css
:
.components-popover.nux-dot-tip
display: none !important;
Source: Creating theme editor styles for Gutenberg
Yes, this solution also came to my mind but as you have said: it's quick 'n dirty. Thank you for your help.
– user3135691
Apr 17 at 9:49
add a comment |
As @nmr found out this seems to be stored browser-wise only. Though I found a workaround to simply hide it via CSS. Quick and dirty.
functions.php
:
// Add backend styles for Gutenberg.
add_action('enqueue_block_editor_assets', 'gutenberg_editor_assets');
function gutenberg_editor_assets()
// Load the theme styles within Gutenberg.
wp_enqueue_style('my-gutenberg-editor-styles', get_theme_file_uri('/assets/gutenberg-editor-styles.css'), FALSE);
assets/gutenberg-editor-styles.css
:
.components-popover.nux-dot-tip
display: none !important;
Source: Creating theme editor styles for Gutenberg
As @nmr found out this seems to be stored browser-wise only. Though I found a workaround to simply hide it via CSS. Quick and dirty.
functions.php
:
// Add backend styles for Gutenberg.
add_action('enqueue_block_editor_assets', 'gutenberg_editor_assets');
function gutenberg_editor_assets()
// Load the theme styles within Gutenberg.
wp_enqueue_style('my-gutenberg-editor-styles', get_theme_file_uri('/assets/gutenberg-editor-styles.css'), FALSE);
assets/gutenberg-editor-styles.css
:
.components-popover.nux-dot-tip
display: none !important;
Source: Creating theme editor styles for Gutenberg
answered Apr 17 at 9:34
leymannxleymannx
1,05211323
1,05211323
Yes, this solution also came to my mind but as you have said: it's quick 'n dirty. Thank you for your help.
– user3135691
Apr 17 at 9:49
add a comment |
Yes, this solution also came to my mind but as you have said: it's quick 'n dirty. Thank you for your help.
– user3135691
Apr 17 at 9:49
Yes, this solution also came to my mind but as you have said: it's quick 'n dirty. Thank you for your help.
– user3135691
Apr 17 at 9:49
Yes, this solution also came to my mind but as you have said: it's quick 'n dirty. Thank you for your help.
– user3135691
Apr 17 at 9:49
add a comment |
Thanks for contributing an answer to WordPress Development Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwordpress.stackexchange.com%2fquestions%2f334559%2fdeactivate-gutenberg-tips-forever-not-gutenberg%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown