Site logo

[Support request] Background Color issues in WP Editor

Home Forums Support [Support request] Background Color issues in WP Editor

Home Forums Support Background Color issues in WP Editor

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1878896
    Kirsty

    I’m having issues with the WP editor where the default text color is super pale, and the title is White on White Background – so unable to see the text or the cursor.

    This is a new issue for this particular website that has a dark background set via GP customiser. I have updated to the latest GP theme and doesn’t solve the issue. I also tried changing the background color of the editor via a editor stylesheet but it doesn’t seem to register…

    How can I fix this?

    #1879172
    David
    Staff
    Customer Support

    Hi there,

    would you want a ‘dark’ background in the editor ? Or just to fix the content title ?

    #1879222
    Kirsty

    I think dark background would be best. I tried to change the bg to a dark color using add_editor_style() but it didn’t register… maybe because the parent generatepress theme sets this too? What’s the best way to go about setting a dark editor bg?

    #1879239
    David
    Staff
    Customer Support

    Try this Snippet:

    add_action( 'enqueue_block_editor_assets', function() {
        $css = 'body .block-editor__container .editor-styles-wrapper{background-color: #ff0000;}';
        wp_add_inline_style( 'generate-block-editor-styles', $css );
    }, 100 );
    #1881258
    Kirsty

    Thanks David! worked a treat 🙂

    #1881363
    David
    Staff
    Customer Support

    Glad to hear that!

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