From the course: WordPress: Building Child Themes

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Including stylesheets

Including stylesheets - WordPress Tutorial

From the course: WordPress: Building Child Themes

Start my 1-month free trial

Including stylesheets

- [Instructor] Now that our child theme loads, you want to include our parents styled on CSS file. The convention is to load this file with PHP through functions.php. If you've never written PHP code, this is going to be the scariest part of creating a child theme. Most of what we'll be using to customize a theme is simple CSS code. But this part requires you write a few lines of actual PHP code. Don't worry. I'll talk you through each line. We have to start by creating a new file. I'll go back to Atom and under topsy turvy cake design, I'll right-click and say new file. And I'll call this functions.php. And before we go any further, we want to make sure that we have an opening PHP tag and no white space. So this is bad and this good. So you want to have the opening PHP tag be the very first character. Then we can go to WordPress.org and copy the necessary code. We'll go back to the child theme documentation. And we'll copy this code right here. And paste it in. If you've never…

Contents