Archived topic
Create page hero template for each category?
5 replies · Started by KAMADEVA AB on May 20, 2021
As your video shows how to make a block Element post template for each category, I have a question regarding page hero for the arvhives:
Is it possible to create in Block Element as a Page Hero template for each individual category?
Hi Martin,
Yes, you can use block element to create a page hero template for categories.
Here's documentation along with a demo video:
https://docs.generatepress.com/article/block-element-page-hero/
Let me know if it's helpful :)
Thank you. I have looked at it before, but I probabaly missed how in the "location"-settings you assign in to specific category?
Hi Martin,
Have you figured it out?
You basically have to create multiple Block elements of page hero content/template for each category on your site.
You then set the display rule location to its respective category for each of the block elements you've created.
Here's a sample of how to assign a display rule location of a specific category to a Block element:
https://share.getcloudapp.com/p9ubv2QA
It's basically either [Post Type] Category Archive or [Post Type] Category.
Post type can be the default post, "product" (woocommerce) or if you've added a custom post type to your site. The dropdown auto-populates for any custom post type added to your site. :)
Thank you.
Yes, I changed the language to English in backend. I used native Sweidsh and then the "Location" settings are just confusing in trnslation, so I missed that. Just could not figure out the the [Post Type] Category ... got it now.
Once again, great support.
No problem. Glad to be of any help. :D