How to add tags at the bottom of a post in Astra

I began using the Astra theme a while back. I was using the Genesis Framework from Studiopress. I got tired of how stale and out-of-date most of the Genesis child themes are. Astra is not stale or out-of-date.

One of the few things I do not like about Astra is how it only shows post meta at the top of the post. By default, the post’s date, the author of the post, and all the various tags assigned to the post are shown at the top of the post. Nothing appears at the bottom of the post.

I’m not too fond of that. I believe tags should appear at the bottom of a post, not at the top.

The good news is that Astra fully supports hooks. They even offer a nifty plugin, Astra Theme Visual Hooks, that shows the various areas on your website where hooks can refer too. I used this plugin to create a function that I added to my Astra child theme’s functions.php file. Always use a child theme.

This is what I added to functions.php:

I customized it so that it did not show “Tags:” in line with the tags. Instead, I made it so it showed “Tags” as headline text above the tags. If you’d rather display the regular, default the_tags() output, then include the following to your Astra child theme’s functions.php:

By looking at how these two examples are structured, you can see how to add customizations elsewhere on your site. You’ll definitely need to use Astra Theme Visual Hooks and the official WordPress reference guide.

The more I tinker with Astra, the more I like it.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top