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 - WordPress Tutorial
From the course: WordPress: Building Child Themes
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…
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.
- Ex_Files_WordPress_Building_Child_Themes_Starting_Site.zip
- Ex_Files_WordPress_Building_Child_Themes_2.zip
- Ex_Files_WordPress_Building_Child_Themes_3.zip
- Ex_Files_WordPress_Building_Child_Themes_4.zip
- Ex_Files_WordPress_Building_Child_Themes_5.zip
- Ex_Files_WordPress_Building_Child_Themes_6.zip
- Ex_Files_WordPress_Building_Child_Themes_7.zip
Contents
-
-
-
-
-
-
(Locked)
Understanding functions.php2m 29s
-
(Locked)
Finding functions in the parent theme2m 13s
-
(Locked)
Modify a pluggable function4m 38s
-
(Locked)
Hooks, filters, and action2m 33s
-
(Locked)
Filter a function5m 25s
-
(Locked)
Hooking functions3m 14s
-
(Locked)
Challenge: Change posted by1m 2s
-
(Locked)
Solution: Change posted by2m 12s
-
(Locked)
-
-
-
-