Archived topic
Adding category and tag to bottom of blog post as well
5 replies · Started by Reena on July 15, 2020
Hi
I've just switched to Generate Press (it's great) and am using child theme Dispatch.
I like how the category displays at the top of the post. But is there a way to also add categories and posts to the bottom of the blog post.
I want it to say:
Filed Under: [Category Name(s)]
Tagged With: [Tag Names]
Thanks, Reena
Hi there,
The Page Hero will automatically remove those items if it detects them within itself so they aren't duplicated on the page.
You can tell them to come back like this:
add_action( 'wp', function() {
add_filter( 'generate_show_tags', '__return_true' );
add_filter( 'generate_show_categories', '__return_true' );
}, 101 );
Let me know if you need more info :)
Thanks Tom. That worked perfectly.
Do you have any info on how I can use css to style this area?
For example, instead of the icons, I wanted it to say Filed Under: [Category Name(s)] and Tagged With: [Tag Names]. And maybe have the category and tag have the same colour as a link so people know that they can click on it.
Thanks,
Reena
Hi there,
add this CSS to your site:
.cat-links:before,
.tags-links:before {
font-family: inherit;
width: auto;
}
.cat-links:before {
content: 'Filed Under: ';
}
.tags-links:before {
content: 'Tagged in: ';
}
Thanks David. That's perfect.
Glad we could be of help