[Resolved] hide layout window in posts and pages

Home Forums Support [Resolved] hide layout window in posts and pages

Home Forums Support hide layout window in posts and pages

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1268749
    Basello

    hello,

    I would like to hide the layout window (who contain the setting for sidebar, footer widgets,etc) in the back end for pages and posts. This for all users.
    Is it possible to add some code in a child theme for that, please?
    Thank you for your help.

    #1269162
    Leo
    Staff
    Customer Support

    Hi there,

    Does this help?
    https://generatepress.com/forums/topic/disable-elements-2/#post-206898

    Let me know ๐Ÿ™‚

    #1269167
    Leo
    Staff
    Customer Support

    If you want to remove it for everyone then try this:

    add_action( 'add_meta_boxes', function() {
        remove_meta_box( 'generate_layout_options_meta_box', 'page', 'side' );
        remove_meta_box( 'generate_layout_options_meta_box', 'post', 'side' );
    }, 999 );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #1269213
    Basello

    Thank you! It is perfect!

    #1269251
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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