Archived topic
Display posts headers only
5 replies · Started by Charles on June 29, 2019
Hello, new to GseneratePress here.
When my users open a category view, they display in the main page with a header (the name of the category).
How can I:
1. Edit and style the category header, and
2. Make the posts or headers display only an image an excerpt, with a "read more..."
Thanks.
Hi there,
1. You can use our Elements module: https://docs.generatepress.com/article/header-element-overview/
You'll just want to make sure to use {{post_title}} in there, as it will pick up the category title automatically. Then set the Display Rules to your category archives.
2. Are you wanting to remove the post meta (author, date, categories) from the posts? If so, this might help: https://docs.generatepress.com/article/blog-overview/
Let me know :)
Hi Tom,
OK, that makes sense. Nice features!
Why does the "excerpt" choice appear only for blog archives but not single blog posts?
I'm trying to do the latter.
Thanks.
Hi there,
Excerpts only display in the archives.
If you're adding a manual excerpt then we provide a shortcode function to display it on the single post - its being used in this header element example:
https://docs.generatepress.com/article/page-hero-examples/#example-4
Thank you.
You're welcome