Site logo

Archived topic

How to change back-end (working area) colour?

7 replies · Started by JamesKrakauer on December 17, 2020

Viewing posts 1–8 of 8

I'm designing some white blocks and trouble is I can't see them against the default white background of the WP back-end.
Is there a way to change the default background colour?
Sorry if I sound dummy or non-GP specific, but I really couldn't find a solution, save for a defunct plugin, which I'd rather not use.
J.

Hi there,

The Gutenberg editor background color should inherit the Content background color set in the customizer.

I believe you will need something like this to change it:
https://developer.wordpress.org/reference/hooks/enqueue_block_editor_assets/
https://generatepress.com/forums/topic/how-to-show-custom-fonts-in-block-editor-gutenberg/#post-1459136

Using a plugin isn't a bad idea if you are not comfortable writing your own code - you can just disable it once you are done with editing.

Let me know if this helps :)

Thank you for your reply, Leo, but I wasn't able to follow up on the links you provided.
I've been experimenting a little and found a css class "gb-container", but I don't know how to change its properties. Please have a look at the attachment. How would I change the color of the thing called "element" in the middle column and where should I place the code?

Anyway, I can make do by changing the content background color temporarily.

Sounds good :)

I have solved it:
1. installed Add Admin CSS plugin;
2. added the following snippet:

body .editor-styles-wrapper {
	background: lightgray ;
}

Glad to hear and thanks for sharing :)

This archived topic is closed to new replies.