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.
Changing an existing template - WordPress Tutorial
From the course: WordPress: Building Child Themes
Changing an existing template
- [Instructor] Earlier in this course, we removed the author from the post meta near the top of the posts. And I think this is a nice way to clear up single-author sites. While we don't need a username up here, we can still share who wrote this post. So, let's jump into a template part. I'm going to open up my code editor, and I'm going to go to my parent theme, 2019, template-parts, post, and then author-bio. At the top, we see, if bool, get_the_author_meta description, then do a whole bunch of stuff. This is basically saying, if the author has a description, then show all of this extra information. I was pretty happy when I stumbled across this file. There's basically hidden functionality that I didn't know existed until I read this code. So, let's fill out our author bio and then come back to this. I'll go back to my site. I will go ahead and open up the admin. I'll go to Users. I'll open up my user, and I'll scroll down and I'll just add some biographical data. Let's go ahead and…
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