Archived topic
Page Hero Best Practice
1 reply · Started by Stephen on October 28, 2018
Hi,
Page hero is a pretty cool feature and I understand how you can pull in post titles etc. But, whats the best way to build headers/heros for "pages", hero's seem to be best suited to blog posts?
Can I pull in page titles just like you can post titles?
If I'm using a different image on every "page" is it quicker/best practice to just build the hero section on the page itself?
What do you do?
Thanks
Steve
Hi there,
Yup {{post_title}} should display the page title when it's used on pages.
Sounds like the option to use Featured image as background image is what you are looking for. This will make it so the page hero automatically grabs the featured image from specific posts/pages and use it background image.
Here are some examples here you might be interested:
https://docs.generatepress.com/article/page-hero-examples/
Let me know if this helps :)