Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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…
    screenshot

    Does anyone else have this problem?

    #1316881

    Hey 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,
    Rikard

    #1316945

    Hey 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.
    #1317057

    Hi,

    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,
    Rikard

    #1317168

    Hey Rikard,
    Thank you for your help, here the login credentials.

    Best regards,
    TBM

    #1317485

    Hi,

    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,
    Rikard

    #1317503

    Thanks for looking into it, but your function is what produces the error, it cannot be used in this form.

    Best regards,
    TBM

    #1317695

    Hi,

    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,
    Rikard

    #1317743

    Hi,
    Thank you for the links

    Best regards,
    TBM

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