From the course: WordPress: Building Child Themes

Unlock the full course today

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

Employing the laziness principle

Employing the laziness principle - WordPress Tutorial

From the course: WordPress: Building Child Themes

Start my 1-month free trial

Employing the laziness principle

- [Instructor] 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 tenants of web design and development. You see, the web is an iterative environment. Each one of us builds on top of what the others have done before, and nowhere is that more true than when 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. As you move forward and build your own child themes, I want you to do the same. Look for existing code and existing solutions. Bake them into your child theme and then make small iterations to make it work the way you want. By using existing code, you're building on top of what others have done before…

Contents