How can I hide/remove additional widgets in the WIDGETS page? Tried Gutenberg Block Manager & Block Visibility, but no avail. (See comments)

How can I hide/remove additional widgets in the WIDGETS page? Tried Gutenberg Block Manager & Block Visibility, but no avail. (See comments)

1 Comment
  1. Hi, so I’m trying to hide additional and most unwanted widget. Block Control and Block Visibility only work for Pages. But I need to do the same for the Widgets page.

    I even tried a snippet

    `add_filter( ‘allowed_block_types’, ‘misha_allowed_block_types’ );`

    `function misha_allowed_block_types( $allowed_blocks ) {`

    `return array(`
    `’core/image’,`
    `’core/paragraph’,`
    `’core/heading’,`
    `’core/embed’,`
    `’core/file’`

    `);`

    But this again only removes the widgets from Posts/Pages and not from the Widgets Panel.

    Goal: To make staff only add the required widget to the sidebar area. The only ones I want staff to use are Paragraph and PDF Embedder.

    Any help would be appreciated, as I’ve searched the web and tried so many options. Thanks

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer