Archived topic
Display category description inside category archive page site container
3 replies · Started by Andrea on February 1, 2022
Hello, I know how to pull the category description into the header element but what is the best way to pull the category description inside the site container for the category archive pages?
Any help would be appreciated.
Thanks!
Hi Andrea,
Are you using Hook element to add the Add Category Archive Description text?
If so, you can use a block element - hook, set the hook name the same as the hook you are using right now.
https://docs.generatepress.com/article/block-element-overview/
https://docs.generatepress.com/article/block-element-page-hero/
https://docs.generatepress.com/article/block-element-content-template/
The category title can be pulled using a GenetateBLocks headline block and its dynamic feature, the category description can be pulled using a Dynamic content block (with GP logo as icon).
Ah! I hadn't dipped into Dynamic Content Blocks yet, great feature! Got it all working now, thanks as always.
Great, good job!
You are welcome :)