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.

Finding functions in the parent theme

Finding functions in the parent theme - WordPress Tutorial

From the course: WordPress: Building Child Themes

Start my 1-month free trial

Finding functions in the parent theme

- [Narrator] Before we start writing code I want to show you how to find the code that you want to modify. WordPress can be very daunting when you're looking through hundreds of files. Over the years developers have organized, reorganized, split apart, and moved files back together. If you take a look at the 2019 functions file you can browse for the code that you want to modify. We can see what functions do and what other files are included. And while this gives us a good general idea of where certain functionality might be located, it is very time-consuming, and you don't want to spend an hour just finding the right file to modify. So let me show you how I find the right file to modify. I noticed at the bottom of the blog page that it says older posts. And while that's accurate, I think we can customize this for our theme. We basically have recipes and cooking tips, so I'd rather use that language. Let's try to find older posts in our parent theme. So I'm just going to copy the…

Contents