-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable Patterns tab #64090
Comments
Hi |
Hey @carolinan thanks for clarifying this. Is there any way to disable the Patterns tab? Even on a clean installation with no patterns installed from theme, core, user etc. the Patterns tab is still shown with a notice "No results found." |
I don't have the answer off the top of my head but it would probably be about changing the permissions for different user roles. |
The code provided didn't worked for me. This one did worked:
|
The code above only removes the menu item from the WordPress admin menu. |
I have run into this as well. Up until WP v6.6 (Gutenberg v18.5, I think), removing theme support for 'core-block-patterns' did the trick. Now I need to use a CSS hack, which is never reliable. As new versions role out, it's not uncommon for classnames to change. (On a side note, not related to this ticket, would also like to remove the Media tab, too) |
I'm confirming this behaviour: it's important to clean Gutenberg interface for customer's site; actually doing through CSS |
Can you all add more detailed information about what part of the UI you are looking to hide? It is unclear if the same parts of the UI are being discussed here. |
I am running into the same thing, did anyone ever get a solution to this? |
Description
I use the following code to disable the Pattern directory but after upgrading to WordPress 6.6.1 the Patterns tab is showing even without contain any patterns. Is this a bug?
https://developer.wordpress.org/block-editor/how-to-guides/curating-the-editor-experience/disable-editor-functionality/#disable-the-pattern-directory
I also use the following:
add_filter( 'should_load_remote_block_patterns', '__return_false' );
Step-by-step reproduction instructions
Add the following code. The Patterns tab is still showing up.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: