Replace the W Icon (WordPress) on Top Left in Gutenberg
Question
I am trying to figure out how to replace the W (WordPress) icon on the top left when writing / editing a post in WordPress using Gutenberg.
I’ve managed to remove the full screen editor from "kicking in", but how do I replace the icon?
add_action( 'enqueue_block_editor_assets', 'disable_gutenberg_fullscreen_on_edit' );
function disable_gutenberg_fullscreen_on_edit() {
$fullscreen_script = "jQuery( window ).load(function() { const isFullscreenMode = wp.data.select( 'core/edit-post' ).isFeatureActive( 'fullscreenMode' ); if ( isFullscreenMode ) { wp.data.dispatch( 'core/edit-post' ).toggleFeature( 'fullscreenMode' ); } });";
wp_add_inline_script( 'wp-blocks', $fullscreen_script );
}
Any help is appreciated. Please see the for more information.
0
2 months
0 Answers
12 views
0
Leave an answer
You must login or register to add a new answer .