Archived topic
Background image for titles
5 replies · Started by Pedro on May 9, 2019
Hello! I would like to add a small banner to the title of the pages with a background image.
For example, for the page of contact us, that the title is inside a banner with a background image.
How can I do it?
Thank you!
Hi there,
Just to make sure, you want add a background image to the content title?
https://www.screencast.com/t/DH8mzI0AJg
Let me know :)
Yes! Like in "Pixel" template: https://mega.nz/#!ChcHkIIb!GvmxYB6auYhRKW-_7EPFMbSDSWRCfVX0x9IQIo6o7zE
Pixel is just using the header element with template tags:
https://docs.generatepress.com/article/header-element-template-tags/
You can see an example here:
https://docs.generatepress.com/article/page-hero-examples/#example-2
Hi leo!
I have reviewed but I do not understand how to do it on my site.
All I want is to add a background to the titles of the pages.
You can help?
The example above should be very similar to the Pixel example you've shown.
Except that you don't need the merge header option and only the <h1>{{post_title}}</h1> as page hero content.
What have you tried and what is not working?