Archived topic
Text is White in Wordpress backend content/post editor
20 replies · Started by Matt on September 15, 2021
Whenever I make a new post or page the text is white and the background is white in the backend of Wordpress, making the text invisible unless I highlight it. How can I get the text to show up as black in the backend when editing my post and descriptions?
I'm using the "Dance" template from the site library.
Hi Matt,
Do you have custom editor stylesheet added to your site?
Any chance you could provide us backend access to check what's going on w/ the editor?
You can use the private information text field to provide the site details. :D
Resolved.
Strange. This is what the editor looks like in the original Dance install:
https://www.screencast.com/t/EtFLvegO
As you can see, the body background color should reflect in the editor so the white text shows.
Somehow this is not the case for you. Can you disable all plugins except GP premium to eliminate any conflicts first?
I haven't actually seen this issue before.
Let me know :)
Resolved.
Any chance you can start a staging site and give us access?
Thanks.
Resolved.
Sorry I think there are some issues between WP5.7 vs WP5.8.
I'll do some more digging and report back :)
Resolved.
Looks like WP changes how the background color is handled from WP5.7 to WP5.8.
Two workarounds for now:
1. You can add this PHP snippet to remove all preview in the block editor:
add_action( 'after_setup_theme', function() {
remove_action( 'enqueue_block_editor_assets', 'generate_enqueue_backend_block_editor_assets' );
} );
Adding PHP: https://docs.generatepress.com/article/adding-php/
2. Choose a solid background color in Customizer > Colors > Content > Background. It's currently transparent.
This way the white text would show in the editor with the solid background color.
Then set it back to transparent once you are done editing.
Neither solution is perfect but should serve as a temporary solution for now.
Let me know if this helps :)
Resolved.
If I use the PHP snippet to remove the post editor then how will I be able to type/make post?
The snippet doesn't remove the post editor - it removes the "live preview" option in the post editor.
Give it a shot then you should see what I mean.
Is Generatepress working on a more viable permanent solution? Or will we have to wait until the next official WordPress update?
We are looking into this.
Actually I found a better workaround.
Simply go to Customizer > Colors > Content > Background and make sure the field is empty:
https://www.screencast.com/t/AsvB9FALNeLq
That should fix the issue without the snippet.
Let me know :)
That workaround worked. Thanks!
Hi there,
would you mind raising a new topic so this one can be marked as resolved.