Support » Theme: Primer » WordPress 5.5 page editor inherits font colour but not background colour

  • Resolved sigagan

    (@sigagan)


    Hi,

    I am using primer theme for my WordPress site. Since updating WordPress to version 5.5, the page and post editor no longer inherits the background colour from theme. However it inherits the font colour.

    My website has a lot of elements with white font and dark background. So now I have white font on white background to work with during editing. Is this a bug? Is anyone aware of a fix?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @sigagan,

    Thank you so much for sharing this with us!

    I will notify our developers about this bug with WordPress 5.5.

    Thanks @gdpavle. In the meantime, can I force the background colour for the editor via theme php or css files. I update the site daily, and as you can imagine editing white text on a white background is no fun.

    • This reply was modified 2 months, 2 weeks ago by sigagan.

    Hi @sigagan,

    As a temporary fix, you can try and add this code to the bottom of Primer’s functions.php:

    
    add_action( 'enqueue_block_editor_assets', 'gd_add_gutenberg_assets' );
    function gd_add_gutenberg_assets() {
    	wp_enqueue_style( 'gd-gutenberg', get_theme_file_uri( 'gutenberg-temporary-style.css' ), false );
    }
    
    

    After that, you can create a CSS file named ‘gutenberg-temporary-style.css’, with the following code:

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

    Finally, add the ‘gutenberg-temporary-style.css’ file to the Primer theme directory.

    This will change the background color of the entire Gutenberg editor content section and should serve as a temporary fix before our devs repair the bug.

    I get a black background and white letters, as you can see here.

    Please let me know if this works for you.

    @gdpavle thanks mate. It works.

    I am having the same problem with the Lyrical theme, I basically can’t even edit posts now because my main theme text is white, where before the background was a blue but is now also white! Should the above codes work?

    I tried the above coding, it did not work. Tried in primer AND lyrical

    Thank you @sigagan for talking about this matter. I thought it was a WordPress 5.5 problem and I even left a message in the forum in my country (Spain).

    But I see it is the problem of the theme. I hope for an update soon @gdpavle although I will test that code to see if I know how to make it work, oops.

    Greetings!

    coloursign

    (@coloursign)

    I am having the same problem with white background in the block editor and white text.

    The temporary fix looks too difficult for someone of my ability to try. I think I would do more harm than good.

    Is there any home that this issue will be resolved shortly as currently having to change the background of the block is a real pain.

    Looking forward to a full time fix.

    • This reply was modified 2 months ago by coloursign.
    coloursign

    (@coloursign)

    Another aspect of upgrading to 5.5 I have noticed is that whenever I amend the block editor with my dark background it also indents all the text.

    Has anyone else noticed this.

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