From the course: WordPress and Genesis: Building Child Themes from Scratch
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Remove Genesis defaults
From the course: WordPress and Genesis: Building Child Themes from Scratch
Remove Genesis defaults
- One of the great things about the Genesis framework, is that so much comes with the theme by default. For instance, there are six default layout options, which means that, that's six that I don't have to create for my child theme. They're just there by default. Now, if you don't want any of these defaults, Genesis provides an easy way for you to remove them. So, let's say that I don't want to use any of these double sidebar layouts. I'd like to get rid of them. Now, you may say to yourself, "I'm not going to use those layouts, but it doesn't bother me if they stay there." Well, it should bother you and I'll tell you why. When you're coding a theme from scratch, you're responsible for adding styles for every little thing, since you're literally starting with nothing. Having all six layouts available means that you need to create styles to support each of those. So, if you don't need all of them, save yourself the work of styling them by simply removing them. So, we'll use the Genesis…
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
-
-
-
-
-
Add theme support options4m 35s
-
Remove Genesis defaults4m 53s
-
Register widget areas4m 28s
-
Challenge: Build out functions.php38s
-
Solution: Build out functions.php30s
-
Set up your front page to check for active widget areas3m 1s
-
Display active widget areas on your front page5m 5s
-
Challenge: Build out front-page.php42s
-
Solution: Build out front-page.php47s
-
-
-
-
-