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.

Managing backward compatibility

Managing backward compatibility - WordPress Tutorial

From the course: WordPress: Building Child Themes

Start my 1-month free trial

Managing backward compatibility

- [Instructor] Many developers use a combination of template modifications and CSS changes to make their child theme, and that's because they're both easy and fast. However, I specifically chose to show you a little bit about writing custom functions before templates because there is one disadvantage with using templates. Both writing CSS and PHP functions are very good at pulling in upstream changes. If I write some CSS for my author bio box, and then the parent theme updates a month later with changes to the footer, which is unrelated, my child theme can pull in those changes, and the theme will continue functioning perfectly. Similarly, with functions, if I plug a function, and a theme adds a new PHP programming for some new functionality yet to be released, my parent theme can update and bring in all of those new changes. But because of how templates work, how they override the parent template, that means if it's in the same template that you overrode, you won't get those changes.…

Contents