1Let's create a child theme for the TwentyTwentyOne theme:
2
31) Create a new theme directory:
4
5/wp-content/themes/mychildtheme/
6
72) Create a style.css file inside the new directory
8(/wp-content/themes/mychildtheme/style.css) and add the following code:
9
10/*
11 Theme Name: Twenty Twenty One Child Theme
12 Theme URI: https://www.mysite.com/
13 Description: A Twenty Twenty One child theme
14 Author: JustMe
15 Author URI: https://www.mysite.com
16 Template: twentytwentyone
17 Version: 1.0.0
18*/
19
20@import url("../twentytwentyone/style.css");
21
223) Go to Appearance > Themes and select the newly create child theme
23
244) Done!
25
26----------------------------
27References and further study
28----------------------------
29
30How to Create and Customize a WordPress Child Theme
31https://www.hostinger.com/tutorials/how-to-create-wordpress-child-theme
32
33Child Themes at Codex
34https://developer.wordpress.org/themes/advanced-topics/child-themes/
35
36How to Create a WordPress Child Theme (Video)
37https://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/