In this tutorial I’m going to show you how to create child themes for the newest WordPress default themes: Twenty Twenty-Five, Twenty Twenty-Four and Twenty Twenty-Three.
If you want to change your theme settings, add or remove functions in it then the only way to do this and at the same time maintain backward compatibility with any future WordPress update is using child themes.
For example let’s say you want to remove the posting date from your WordPress Site, then you can do this using a child theme and every time WordPress releases an update for the default themes you don’t have to worry about having your new settings overwritten from the default file settings.
Creating a Child Theme for Twenty Twenty-Five
Twenty Twenty-Five is a block theme, so its child theme needs one extra step compared to classic themes: a small functions.php file that loads your child theme’s style.css.
- Create a new folder called “twentytwentyfive-child”.
- Inside it, create a file called “style.css” and add the following code:
/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://fixmywp.com/
Description: Child theme for the Twenty Twenty-Five theme
Author: FixMyWP
Author URI: https://fixmywp.com/
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/
/* Add your custom CSS below this line. */
- Create a file called “functions.php” in the same folder and add this code. Block themes do not load the child theme’s style.css on their own, so this makes sure your custom CSS is used:
- Optional: add a “theme.json” file. Block themes keep their colors, fonts and spacing here, and your child theme’s settings are merged with the parent’s:
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3
}
- Zip the “twentytwentyfive-child” folder.
- In your WordPress dashboard, go to Appearance > Themes > Add New Theme > Upload Theme, choose the .zip file and click Install Now. Twenty Twenty-Five must be installed too, since the child theme needs its parent.
- Click Activate. You can now change styles in Appearance > Editor or in your child theme files, and updates to Twenty Twenty-Five will not overwrite them.
Creating a Child Theme for Twenty Twenty-Four
The steps are the same as for Twenty Twenty-Five. Create a folder called “twentytwentyfour-child” and use this style.css. The functions.php and theme.json files stay the same.
/*
Theme Name: Twenty Twenty-Four Child
Theme URI: https://fixmywp.com/
Description: Child theme for the Twenty Twenty-Four theme
Author: FixMyWP
Author URI: https://fixmywp.com/
Template: twentytwentyfour
Version: 1.0.0
Text Domain: twentytwentyfour-child
*/
/* Add your custom CSS below this line. */
Creating a Child Theme for Twenty Twenty-Three
Again, the steps are the same. Create a folder called “twentytwentythree-child” and use this style.css, with the same functions.php and theme.json files.
/*
Theme Name: Twenty Twenty-Three Child
Theme URI: https://fixmywp.com/
Description: Child theme for the Twenty Twenty-Three theme
Author: FixMyWP
Author URI: https://fixmywp.com/
Template: twentytwentythree
Version: 1.0.0
Text Domain: twentytwentythree-child
*/
/* Add your custom CSS below this line. */
Theme not behaving? Broken layouts, failed theme updates or style changes you can’t get right. We fix them for a flat $249. See theme fixes →
Recently I had switched themes on my WordPress site and there were issues with how the new theme was operating. Finally after searching for fixes I found FixMyWP.com, sent a request and in less than 2 hours … the problem was resolved. FixMyWP saved the day (and my sanity). Highly recommended.
.wp-block-post-date { display: none; }Theme not behaving?
Layouts out of place, a theme that won’t update or install, or small style changes you can’t get right. Flat rate of $249, usually done the same day or within 24 business hours.

