Join Morten Rand-Hendriksen for an in-depth discussion in this video Employing the laziness principle, part of WordPress: Building Child Themes.
- One of the most important lessons I've learned being a web developer is how to be lazy. Now I know that sounds ridiculous, but the laziness principle is one of the core tenets of web design and development. You see, the web is an iterative environment. Each one of us builds on top of what others have done before and nowhere is that more true than when we're working with WordPress child themes. So, what is the laziness principle? Simple -- do as little as possible, and reuse code whenever it's available.
As we walk through this course, you'll see me constantly copy code from the parent theme and place it into the child theme, and then make tiny changes for major impact in the child theme. And as you move forward and build your own child themes, I want you to always do the same. Look for existing code and existing solutions, bake them into your child theme, and then make small alterations to make it work the way you want. By using existing code, you're building on top of what others have done before, you're learning how to write code in the most efficient way, and you end up with functional, clean, and efficient code output in your child theme.
The laziness principle makes everything a lot simpler.
WordPress: Building Child Themes opens the world of child theme development to anyone, no matter what level of experience or expertise. It helps you build your child theme on top of an existing properly coded foundation, and create stylish new WordPress sites—without the advanced knowledge of a web developer. Morten Rand-Hendriksen explains how to get started picking a parent theme, updating the CSS, creating a new template for your child theme, and updating its functionality. By the end of this practical, project-based course, you should have a functioning child theme and the skills to quickly customize your next WordPress site.
- What is a child theme?
- Creating and activating a child theme
- Overriding or overwriting?
- Changing existing styles
- Adding new styles
- Creating templates for the child theme
- Adding new menus and widgets
- Replacing custom web fonts