Description
The following code directly in the Twenty Twenty Five theme's functions.php file or in a child theme for the Twenty Twenty Five theme does not remove the core patterns. We need a way to remove core patterns from the default theme. Cheers!
function my_theme_setup() {
// REMOVE CORE WP PATTERNS
remove_theme_support( 'core-block-patterns' );
}
add_action( 'after_setup_theme', 'my_theme_setup' );
Also does not work:
add_action('init', function() {
remove_theme_support('core-block-patterns');
});
Step-by-step reproduction instructions
Add one or both of the above snippets to a child theme for the Twenty Twenty Five theme with no other plugins installed and then add a new page, click the (+) to add a block or pattern, see the core patterns are still present.
Screenshots, screen recording, code snippet
No response
Environment info
- wp 6.9
- latest gutenberg (also happens without)
- chrome
- mac
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
Description
The following code directly in the Twenty Twenty Five theme's functions.php file or in a child theme for the Twenty Twenty Five theme does not remove the core patterns. We need a way to remove core patterns from the default theme. Cheers!
Also does not work:
Step-by-step reproduction instructions
Add one or both of the above snippets to a child theme for the Twenty Twenty Five theme with no other plugins installed and then add a new page, click the (+) to add a block or pattern, see the core patterns are still present.
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.