Change Site Icon Background Color in Fullscreen Mode

In this WordPress tutorial, I will show you how to change the black background color for the site icon button while in Fullscreen mode. For some reason WordPress has defaulted this background color to black. This can cause problems if your site icon is also dark.

Timestamps:

  • 0:00 Introduction
  • 1:23 WordPress Tutorial Begins

Code Credit:
https://rudrastyh.com/gutenberg/custom-logo-in-fullscreen-mode.html

Code Snippets Plugin:
https://wordpress.org/plugins/code-snippets/

PHP Code Snippet

				
					add_action( 'admin_head', 'site_icon_style' );

function site_icon_style(){	
	$screen = get_current_screen();
	if( ! $screen->is_block_editor ) {
		return;
	}
	echo '<style>
	.edit-post-fullscreen-mode-close.has-icon{background-color:#fff!important;border-bottom:1px solid #e0e0e0}
    .edit-post-fullscreen-mode-close.components-button:before{box-shadow:none;}
	</style>';

}
				
			

Free Brand Messaging Worksheet

Define Your Voice and Connect with Your Audience

More Free Resources

Let's Work Together

Big ideas start with a quick chat. Let’s talk!