• Resolved skylabb

    (@skylabb)


    Hi, the Language Restriction settings section in Gutenberg Editor by default is open. This is quite annoying because the Translatepress settings section adds distraction to the already busy looking editor settings panel. What I use everyday are design block settings and only need to do anything Translatepress settings in the beginning when a page was created.

    I wonder if there’s a way to hide or at least collapse the Language Restriction by default so to keep my editor setting panel clean and minimal?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Anca

    (@ancavictoria)

    Hello,

    Currently, the Language Restriction section cannot be hidden or closed by default.

    If we implement an option for this in the future, I will let you know.

    Kind regards,

    Anca

    Thread Starter skylabb

    (@skylabb)

    @ancavictoria

    Thanks for the response and I hope the enhancement will be realized.

    Injected into the Gutenberg editor through the functions.php of the sub-theme:

    add_action(‘enqueue_block_editor_assets’, ‘hide_translatepress_language_restriction’);
    function hide_translatepress_language_restriction() {
    wp_add_inline_style(‘wp-edit-post’, ‘
    /* Hide TranslatePress Language Restriction */
    .translatepress-content-restriction-settings {
    display: none !important;
    }
    ‘);
    }

    • This reply was modified 2 weeks, 1 day ago by galensemone.
    Thread Starter skylabb

    (@skylabb)

    @galensemone

    Thanks for the work around tip. I was hoping there was a built in setting for it or official way to do it.

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