-
AuthorPosts
-
August 14, 2021 at 1:10 am #1316690
Hello,
the settings for “Alternate Content” have an effect on the Gutenberg Editor.
Alternate Background-Color and Alternate Content Font-Color for example.#ff0000 for backgroundcolor and #0011ff for font-color have this the result…

Does anyone else have this problem?
August 16, 2021 at 6:32 am #1316881Hey TBM,
I see the same problem on a test installation. I’ve reported this problem to our developers, a fix will be included in the next version of the theme.
In the meantime, please try this in functions.php:
function avia_set_gutenberg_title_background() { ?> <style> .editor-styles-wrapper .editor-post-title__block textarea { background-color: white !important; } </style> <?php } add_action( 'init', 'avia_set_gutenberg_title_background');Best regards,
RikardAugust 16, 2021 at 12:44 pm #1316945Hey Rikard,
Thank you for your help, your code fix the problem.Best regards,
TBM#edit
I get an error when I want to save a post.
“Update failed. The response is not a valid JSON response.”
even if you want to edit the functions.php you get an error.-
This reply was modified 4 years, 6 months ago by
TBM.
August 17, 2021 at 5:44 am #1317057Hi,
Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardAugust 17, 2021 at 2:17 pm #1317168Hey Rikard,
Thank you for your help, here the login credentials.Best regards,
TBMAugust 19, 2021 at 1:22 pm #1317485Hi,
Thanks for that. I’m seeing the same error message on my end using the Layout Builder, but I also see the same error when using the default WordPress editor, so I don’t think this is a theme problem. Does the same thing happen if you activate one of the default WordPress themes for example? You might want to reach out to your hosting provider, to see if they can see anything in the server error logs.
About the problem you initially opened this thread for; I’ve discussed this with our developers, and the background colour behaviour is actually intended, so it’s not something we will fix. If you want to override the colour setting for this field, then please keep on using the function I sent earlier.
Best regards,
RikardAugust 19, 2021 at 2:38 pm #1317503Thanks for looking into it, but your function is what produces the error, it cannot be used in this form.
Best regards,
TBMAugust 21, 2021 at 4:57 am #1317695Hi,
Thanks for the clarification. I think you will have to try to enqueue your own style sheet then, please refer to these articles:
https://elod.in/contextual-styling-in-the-gutenberg-editor/
https://www.intelliwolf.com/add-custom-css-wordpress-admin-area/
Best regards,
RikardAugust 21, 2021 at 4:49 pm #1317743Hi,
Thank you for the linksBest regards,
TBM -
This reply was modified 4 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
