Get a professional website for $99 per month. One week turnaround.

Change Site Icon Background Color in Fullscreen Mode

Home WordPress Change Site Icon Background Color in Fullscreen Mode

December 9, 2022

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.


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

Code Credit:

Code Snippets Plugin:

PHP Code Snippet

					add_action( 'admin_head', 'site_icon_style' );

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


*Some of the links on this page are affiliate links, meaning we may receive a commission if you follow them. This allows us to continue providing free content and educational resources for you. Thank you for supporting our small business!

More Free Resources