-
Yolanda Lippens
Hello great support,
How can I make the background color of H1 full width, and the title text stays in the same position (as it is now)?
Example (test website):
https://pijnmc.nl/begrijpen/werkwijze/Thank you!
Yolanda -
David
Hi there,
is it just the Title that you need a full width background ? or will other elements in the content require ti too ?
-
Yolanda Lippens
Hello David,
It’s just the background color of the title for a full width background, so no other elements.
The text of the title needs to stay on the same left margin as it is now.Thank you!
Yolanda -
Yolanda Lippens
To make it visible, here is a screenshot, where Carbamazepine is the H1 title of the page/post.
https://i.postimg.cc/NF5pfNrf/20230604-000980.jpg -
David
OK, so if it is only the Title, then i would suggest you create a Block Element – Page Hero to display that tile. See here:
https://docs.generatepress.com/article/block-element-page-hero/
In the Element add a Container Block with an Inner Container Block see here:
https://docs.generateblocks.com/article/container-overview/
The outer container has your background color.
And the inner container your add your Headlie Block to display the title. -
Yolanda Lippens
Thank you so much, that worked!!!
-
Yolanda Lippens
P.s. I also needed to make another element to disable the regular Title.
-
David
In the Page Hero element, you have an option built into disable the site title – see here:
https://docs.generatepress.com/article/block-element-page-hero/#settings
-
Yolanda Lippens
Thank you, I missed that one!!
-
David
You’re welcome
- You must be logged in to reply to this topic.