Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Since last GP update, WP editor background turned gray

  • Hi,

    I’m writing to you because I believe this issue is related to GeneratePress. Gutenberg editor’s background turned gray since the last update of the GP theme.

    If I take a look at the HTML + CSS, I can see that there’s this line :

    .editor-styles-wrapper {
        background-color: var(--base-3);
    }

    Since the var(–base-3) is one of the default color variables GP uses upon installing it, I believe this comes from your code. The problem is : I don’t use the same color variables and base-3 is not present in my colors anymore. I can force this variable to white in GP settings to fix this, but this is a bit dirty.

    But this might be linked to the background of the visual editor being set to #DDD :

    .edit-post-visual-editor {
        background-color: #ddd;
        ...
    }

    But still, if I remove your CSS directive to use –base-3, my background turns white.

    Let me know thanks !

  • Hi there,

    go to Customizer > Colors and check the Body and Content background colors.
    What are those set to ?

  • Hi David,
    Thanks for the quick reply. Yep, body was my own color variable, but content was still base-3, causing this error. Thanks for the tip!

    Is this something new? I’ve seen it on 3 of my websites, but it’s pretty recent.

  • Sorry for the late reply.
    Aside from yourself about 2 other users have reported the same issue.
    To cover: GP loads the editor background color with the Content Background if it exists, or the Body Background if it does not. And thats hows it been for a long time now.
    So what just happened to your site ie. it loaded the content background is what it should always have been doing.
    So the issue here is not what just happened but why was it not working in the first place.

  • Hi David,
    No problem, thanks a lot for your clarifications.

  • You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.