You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot remove core patterns when using Twenty Twenty Five theme (or child theme) #74959
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!
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.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Please confirm which theme type you used for testing.
Refreshed the editor and checked Patterns → Call to Action again.
Total patterns after code: 13
Created a new page in the block editor.
Clicked the (+) inserter to add a block or pattern.
Repeated all steps:
With no plugins active
With Gutenberg plugin 22.4.1 active
x. ❌ Bug is not occurring
Expected behavior
Core WordPress block patterns should be removed from the inserter when remove_theme_support( 'core-block-patterns' ); is used in the Twenty Twenty-Five theme or its child theme.
Additional Notes
I was unable to reproduce the reported issue.
The Call to Action category was reduced from 20 patterns to 13 patterns, confirming that core patterns are being removed.
The removal of core block patterns works as expected in all tested scenarios.
Tested specifically with the Twenty Twenty-Five child theme.
Behavior is the same with and without the Gutenberg plugin.
@huzaifaalmesbah Ah, yes you are correct. Okay, so the default theme just has THAT many patterns built-into it and no way of removing those patterns from the default Twenty Twenty Five theme then I suppose? Not the end of the world, but it would be nice if the default theme had no patterns imo.
Activity
huzaifaalmesbah commentedon Jan 27, 2026
Reproduction Report
Environment
Steps taken
functions.phpfile:Refreshed the editor and checked Patterns → Call to Action again.
Created a new page in the block editor.
Clicked the (+) inserter to add a block or pattern.
Repeated all steps:
x. ❌ Bug is not occurring
Expected behavior
remove_theme_support( 'core-block-patterns' );is used in the Twenty Twenty-Five theme or its child theme.Additional Notes
Screenshots/Screencast with results
https://files.catbox.moe/ulh54g.mp4
bradhogan commentedon Jan 27, 2026
@huzaifaalmesbah Ah, yes you are correct. Okay, so the default theme just has THAT many patterns built-into it and no way of removing those patterns from the default Twenty Twenty Five theme then I suppose? Not the end of the world, but it would be nice if the default theme had no patterns imo.