Archived topic
Can't Add Title To Posts
11 replies · Started by Anthony on April 12, 2022
Hi,
We're having a problem adding/updating posts with the block editor on our site. The section to add a title isn't showing so all new posts get saved with the (No title) default and we get a updating failed message when we try to make changes to an existing post.
Are there any settings that can be updated to make sure the block editor is working correctly with GeneratePress?
Thank you
Hi there,
the Title is there, its just hard to see as the Customizer > Colors > Content --> H1 is set to White. Change that color there.
Change the Customizer Color to something you can see.
Then edit your Header Element and set IT's text color to white
i'm sorry, why is customizer affecting the ADMIN AREA colors?
This isnt the blog H1 this is the block editor screen H1 inside the input box...
i mean its an issue in one of your tickets from another customer from back in 2019. Why is this not resolved? Why would Customizer affect Admin area css? especially knowing that the admin area will always have mostly white boxes.. that would be like making the text im writing now white because the same size text at the top of this page is white..
Hi Anthony,
The title is part of the Content by default. Any color changes made in Appearance > Customize > Colors > Content will be shown in the Block Editor so you would know how it would look like in the Front end.
Hope this clarifies! Kindly let us know if you have any further questions. :)
Yeah, how can i see the editor screen and edit the title on a website with white titles? Is this site done with generate press? how do you edit the entire top section of your website? blindly click until you get the box? I see that the box im typing in has nice lines around it so i know where it is...
how it looks in the front end is white on a tan background... how it looks in the editor is white on white.. so either the problem is that you are NOT actually matching the front end or it would be visible. so while the H1 is being set as white, the background behind it isn't taking the customizer colors... which would be great, ill take it actually showing what we see on the front end any day.
also zero css edits will change the color in the admin area, however i can change the color in the front end with overrides all day.
So even a solution that involves forcing the color would be great, the code in the post from 2019 doesn't work. presumably because something was changed in future updates.. hence the final comment on that ticket was to check if the problem still existed in the latest update.
I see. Can you try adding a PHP snippet like this instead and see how it goes?:
add_action( 'enqueue_block_editor_assets', function() {
echo '<style id="change-editor-title-color">
.editor-post-title.editor-post-title__input {color: #000 !important;}
</style>';
}, 20 );
Adding this through a plugin like Code Snippets should work.
Kindly let us know how it goes. :)
The issue is that the title on the site is inside the "page-hero" but the logic for the block editor is taking the "body" background color, which is not the color that surrounds the title of the post.
You could also try this instead of the code above so that it adds the CSS to an already registered stylesheet:
add_action( 'enqueue_block_editor_assets', function() {
$css = '.editor-post-title.editor-post-title__input {color: #000 !important;}';
wp_add_inline_style( 'generateblocks', $css );
}, 20 );
This code should change the color of the title to black on the “admin” side when using the block editor. As mentioned, adding this through Code snippets should work.
With regards to the issue, may we know which specific post, page or element we need to access to replicate the issue in your website?
Hope to hear from you soon. :)