- This topic has 11 replies, 3 voices, and was last updated 3 years, 11 months ago by
Fernando.
-
AuthorPosts
-
April 12, 2022 at 6:59 am #2186256
Anthony
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
April 12, 2022 at 7:48 am #2186291David
StaffCustomer SupportHi 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 whiteApril 12, 2022 at 8:18 pm #2187004Anthony
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…April 12, 2022 at 8:31 pm #2187014Anthony
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..
April 12, 2022 at 8:38 pm #2187015Fernando Customer Support
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. 🙂
April 12, 2022 at 8:39 pm #2187016Anthony
April 12, 2022 at 8:40 pm #2187018Anthony
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…
April 12, 2022 at 8:52 pm #2187022Anthony
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.
April 12, 2022 at 8:55 pm #2187024Anthony
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.
April 12, 2022 at 9:16 pm #2187032Fernando Customer Support
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. 🙂
April 12, 2022 at 9:18 pm #2187034Anthony
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.
April 12, 2022 at 11:12 pm #2187087Fernando Customer Support
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. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.