From the course: WordPress: Workflows
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Defining our child theme - WordPress Tutorial
From the course: WordPress: Workflows
Defining our child theme
- [Instructor] While this isn't a comprehensive look at child themes, we will learn how to define and install one on our local site, and how to proceed with customizing the parent theme. To start, open a code editor of your choice. I'm using VS Code. I've got the WPcontent/themes folder of my local WordPress site open here. In the themes folder I'm going to create a new directory called twentytwenty-child. And in that directory I'm going to create a new file called style.css. That is how our child theme is going to be defined. I'm going to add the theme definition block. There's some basic information here like the theme name and URI, a description and information about the author. But the most important line in this definition is the Template line. And this is going to match the directory of the parent theme exactly. You'll see that we have twentytwenty here and we have twentytwenty as the directory name in our…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
What is a child theme?2m 12s
-
(Locked)
Setting up a local dev environment2m 33s
-
(Locked)
Defining our child theme4m 44s
-
(Locked)
Migrating a live site to local2m 59s
-
(Locked)
Testing our theme with extreme content5m 9s
-
(Locked)
How to handle new content locally1m 11s
-
(Locked)
Moving our child theme live3m 16s
-
(Locked)
Wrapping up1m 7s
-
-
-
-