I would like to use TwentyTwentyFive theme as a parent theme and have created a child theme. I would like to disable the default styles inside the the folder twentytwentyfive/styles/*.json and twentytwentyfive/colors/*.json. How can I do that inside the child theme or in a plugin?
I would like to use TwentyTwentyFive theme as a parent theme and have created a child theme. I would like to disable the default styles inside the the folder twentytwentyfive/styles/*.json and twentytwentyfive/colors/*.json. How can I do that inside the child theme or in a plugin?
To disable the default styles in Twenty Twenty-Five theme and use your child theme styles, you can follow a simpler approach without overcomplicating it.
Recommended Approach:
Learn the Basics: Follow the Develop Your First Low-Code Block Theme course. It explains how to properly create and manage a block theme child.
Use the "Create Block Theme" Plugin:
Install and activate the Create Block Theme plugin.
Use this plugin to create a child theme from Twenty Twenty-Five.
Once the child theme is created, you can modify or replace the theme.json file in your child theme to control styles and settings.
Disabling Parent Styles:
To override or disable the styles from the parent theme, simply create your own theme.json in the child theme. WordPress will prioritize the child theme’s theme.json.
This is the cleanest and most future-proof way to manage a child theme for block-based themes like Twenty Twenty-Five.