<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPWife &#187; wordpress editor background color</title>
	<atom:link href="http://www.wpwife.com/category/wordpress-editor-background-color/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpwife.com</link>
	<description>WPHelp: fix and optimise WP themes&#38;plugins</description>
	<lastBuildDate>Fri, 21 Nov 2025 12:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.38</generator>
	<item>
		<title>How to Customize the Background Color of WordPress Block Editor</title>
		<link>http://www.wpwife.com/wordpress-plugins/how-to-customize-the-background-color-of-wordpress-block-editor</link>
		<comments>http://www.wpwife.com/wordpress-plugins/how-to-customize-the-background-color-of-wordpress-block-editor#comments</comments>
		<pubDate>Mon, 10 Apr 2023 08:06:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[block editor]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[wordpress editor background color]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=173762</guid>
		<description><![CDATA[
<p>Do you want to change the background color of the WordPress block editor for admins? Sometimes when working on a custom client project, you may want to change the Gutenberg editor background color in WordPress to match their brand colors. In this article, we&#8217;ll show&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-themes/how-to-customize-the-background-color-of-wordpress-block-editor/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-themes/how-to-customize-the-background-color-of-wordpress-block-editor/">How to Customize the Background Color of WordPress Block Editor</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to change the background color of the WordPress block editor for admins?</p>



<p>Sometimes when working on a custom client project, you may want to change the Gutenberg editor background color in WordPress to match their brand colors.</p>



<p>In this article, we&#8217;ll show you how to easily customize the background color of the WordPress block editor for admin area.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2023/03/how-to-change-the-wordpress-editor-background-color-og.png" alt="Changing the background color of WordPress block editor" class="wp-image-173864" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/03/how-to-change-the-wordpress-editor-background-color-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/03/how-to-change-the-wordpress-editor-background-color-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>


<div class="wpb-alert style-yellow">

<p><strong>Note:</strong> This guide covers changing the editor color in WordPress admin. If you&#8217;re looking to change the background color in WordPress front-end, then please see our tutorial on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-change-background-color-in-wordpress-beginners-guide/" title="How to Change Background Color in WordPress (Beginner’s Guide)">how to change background color in WordPress</a>.</p>

</div>


<h4>Why Change the Background Color of the Block Editor in WordPress?</h4>



<p>You may want to change the background color of the WordPress <a href="https://www.wpbeginner.com/beginners-guide/how-to-use-the-new-wordpress-block-editor/" title="How to Use the WordPress Block Editor (Gutenberg Tutorial)">block editor</a> for a number of reasons.</p>



<p>For instance, most <a href="https://www.wpbeginner.com/showcase/best-wordpress-full-site-editing-themes/" title="21 Best Block Themes for Full Site Editing in WordPress (2023)">modern WordPress themes</a> use the same background color for the block editor as the live website including <a href="https://www.wpbeginner.com/refer/astra-theme-pricing-page/"  rel="noopener nofollow" title="Astra Theme Pricing Page">Astra</a>, <a href="https://www.wpbeginner.com/refer/oceanwp/"  rel="noopener" title="OceanWP">OceanWP</a>, <a href="https://www.wpbeginner.com/refer/generatepress/"  rel="noopener nofollow" title="GeneratePress">GeneratePress</a>, and more.</p>



<p>However, if your WordPress theme doesn&#8217;t use the same colors, then the appearance of your post inside the editor will look quite different from what your users will see on the live website.</p>



<p>Another reason for changing the background color could be personal preference.</p>



<p>For instance, by default, the block editor uses a plain white background. Some users may find it a bit stressful to look at the white screen for long hours. Eye strain can be a real issue for many people, and the default white background is not easy on the eyes.</p>



<figure class="wp-block-image size-full"><img width="680" height="266" src="https://www.wpbeginner.com/wp-content/uploads/2023/03/white-block-editor.png" alt="Default block editor" class="wp-image-173915" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/03/white-block-editor.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/03/white-block-editor-300x117.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>That being said, let&#8217;s see how you can easily change the WordPress editor background color.</p>



<h4>How to Change the WordPress Editor Background Color</h4>



<p>You can easily change the WordPress editor background color by adding custom code to your theme&#8217;s <a href="https://www.wpbeginner.com/glossary/functions-php/" title="functions.php">functions.php</a> file.</p>



<p>However, keep in mind that even the smallest error in the code can break your website and make it inaccessible. That&#8217;s why we recommend using the <a href="https://wpcode.com/"  title="WPCode - WordPress Code Snippet Plugin" rel="noopener">WPCode </a>plugin. It&#8217;s the best WordPress code snippets plugin on the market and is the easiest and safest way to add custom code to your WordPress website.</p>



<p>First, you need to install and activate the <a href="https://wordpress.org/plugins/insert-headers-and-footers"  title="WPCode Free Code Snippet Plugin for WordPress" rel="noopener">free WPCode plugin</a>. For more instructions, please see our step-by-step guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.</p>



<p>Upon activation, you need to visit the <strong>Code Snippets » + Add Snippets</strong> page from the admin sidebar.</p>



<p>From here, you have to click on the &#8216;Use Snippet&#8217; button under the&nbsp;‘Add Your Custom Code (New Snippet)’ option.</p>



<figure class="wp-block-image size-full"><img width="680" height="335" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/addnewsnippet.png" alt="Add new snippet" class="wp-image-166377" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/addnewsnippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/addnewsnippet-300x148.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will take you to the &#8216;Create Custom Snippet&#8217; page where you can start by typing a name for your code snippet. This is just for you and can be anything that will help you identify the code.</p>



<p>Next, you need to choose &#8216;PHP Snippet&#8217; as the &#8216;Code Type&#8217; from the dropdown menu on the right.</p>



<figure class="wp-block-image size-full"><img width="680" height="350" src="https://www.wpbeginner.com/wp-content/uploads/2023/03/choose-php-as-code-type-for-editor-background-color.png" alt="Choose PHP Snippet option as the code type for changing editor background color" class="wp-image-173852" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/03/choose-php-as-code-type-for-editor-background-color.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/03/choose-php-as-code-type-for-editor-background-color-300x154.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you need to copy and paste the following code into the &#8216;Code Preview&#8217; box.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
add_action( 'admin_footer', function() {
	?&gt;
	&lt;style&gt;
		.editor-styles-wrapper {
			background-color: #bee0ec;
		}
	&lt;/style&gt;
	&lt;?php
});
</pre></div>


<p>Next, you need to look for the following code in the PHP snippet you just pasted.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
background-color: #bee0ec;
</pre></div>


<p>Then, you have to add the hex code of your preferred color next to the background color option. If you don&#8217;t want to use a hex code, you can use some basic color names such as &#8216;white&#8217; or &#8216;blue&#8217; instead.</p>



<figure class="wp-block-image size-full"><img width="680" height="295" src="https://www.wpbeginner.com/wp-content/uploads/2023/03/paste-snippet-for-editor-background-color.png" alt="Paste the code snippet for changing the editor background color" class="wp-image-173856" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/03/paste-snippet-for-editor-background-color.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/03/paste-snippet-for-editor-background-color-300x130.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you need to scroll down to the &#8216;Insertion&#8217; section and choose the &#8216;Auto Insert&#8217; option.</p>



<p>Next, you need to select the &#8216;Location&#8217; of the code snippet as &#8216;Admin Only&#8217; from the dropdown menu.</p>



<figure class="wp-block-image size-full"><img width="680" height="337" src="https://www.wpbeginner.com/wp-content/uploads/2023/03/choose-insertion-and-location.png" alt="Choose the insertion method and location of the code snippet" class="wp-image-173858" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/03/choose-insertion-and-location.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/03/choose-insertion-and-location-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you need to scroll back to the top of the page and toggle the &#8216;Inactive&#8217; switch to &#8216;Active.&#8217;</p>



<p>Finally, don&#8217;t forget to click on the &#8216;Save Snippet&#8217; button to save your changes.</p>



<figure class="wp-block-image size-full"><img width="680" height="364" src="https://www.wpbeginner.com/wp-content/uploads/2023/03/save-editor-bgcolor-snippet.png" alt="Save the code snippet for changing the background color" class="wp-image-173859" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/03/save-editor-bgcolor-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/03/save-editor-bgcolor-snippet-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, go visit the block editor from the admin sidebar.</p>



<p>This is how the block editor looked on our site after adding the CSS <a href="https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/" title="How to Easily Add Custom Code in WordPress (Without Breaking Your Site)">code snippet</a>.</p>



<figure class="wp-block-image size-full"><img width="680" height="294" src="https://www.wpbeginner.com/wp-content/uploads/2023/03/editor-color-preview.png" alt="Editor color preview" class="wp-image-173861" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/03/editor-color-preview.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/03/editor-color-preview-300x130.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>We hope this article helped you learn how to easily change the WordPress editor background color. You may also want to see our ultimate guide on <a href="https://www.wpbeginner.com/beginners-guide/21-most-useful-time-saving-wordpress-shortcuts/" title="85+ Most Useful Time Saving WordPress Keyboard Shortcuts">85+ time saving WordPress shortcuts</a>, or take a look at our top picks for the <a href="https://www.wpbeginner.com/beginners-guide/best-drag-and-drop-page-builders-for-wordpress/" title="6 Best Drag and Drop WordPress Page Builders Compared (2023)">best WordPress page builder plugins</a>. </p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-themes/how-to-customize-the-background-color-of-wordpress-block-editor/">How to Customize the Background Color of WordPress Block Editor</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/wordpress-plugins/how-to-customize-the-background-color-of-wordpress-block-editor/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
	</channel>
</rss>
