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 attached screenshot for more information.

0
Sara McMahon 2 months 0 Answers 12 views 0

Leave an answer