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

Defining our child theme - WordPress Tutorial

From the course: WordPress: Workflows

Start my 1-month free trial

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…

Contents