Join Morten Rand-Hendriksen for an in-depth discussion in this video Challenge: Change the post meta display on index pages, part of WordPress: Building Child Themes.
- View Offline
- Are you ready for another challenge? Well, here it comes.…In the previous movie, I showed you how we can…grab pluggable functions from the parent theme…and place them into our child theme, and then…augment the output from those functions.…And we did this for the function that's being used…by the single post display here at the top of the post.…The problem is, when we go to the index page,…although this affects the first post,…it does not affect the next post that comes down the pipe.…So here, when we have the truncated versions of the post…that you see on all other index pages,…we still just see "by authorname," "published on this date"…and then how many comments.…
What I want you to do in this challenge is find the function…that outputs this content in the index pages…and then augment the output so that it also…displays the categories.…Now I'll give you a single tip here.…Just like with the popper_posted_on() function,…the function that you need to look at…and the one that you need to augment…is found in Template-Tags.php under the Inc folder…
WordPress: Building Child Themes opens the world of child theme development to anyone, no matter what level of experience or expertise. It helps you build your child theme on top of an existing properly coded foundation, and create stylish new WordPress sites—without the advanced knowledge of a web developer. Morten Rand-Hendriksen explains how to get started picking a parent theme, updating the CSS, creating a new template for your child theme, and updating its functionality. By the end of this practical, project-based course, you should have a functioning child theme and the skills to quickly customize your next WordPress site.
- What is a child theme?
- Creating and activating a child theme
- Overriding or overwriting?
- Changing existing styles
- Adding new styles
- Creating templates for the child theme
- Adding new menus and widgets
- Replacing custom web fonts