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

Changing an existing template - WordPress Tutorial

From the course: WordPress: Building Child Themes

Start my 1-month free trial

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…

Contents