Archived topic
Moving Page Title?
4 replies · Started by Thomas on August 17, 2021
Hey GP Support, thank you as always for your great work.
I have a question that I hope is simple but I can't seem to find the answer / location of the inquiry.
Basically, I am wondering if its possible to "move" the location of the generated page title to above the header. So for example i'd want the Page title, then the header element then the page content.
I tried digging around the theme files but I couldn't find the source of it; all I could guess is that the page title resides within "the_post()"?
Even if its possible to disable the page title but be able to programatically add it in above all other content that would work too. Thanks so much!
I think I figured it out, or atleast a temproary solution if anyone is looking for it in the future.
1. Hide the generated titles via whatever method
2. Add a hook
3. add the content in the hook
4. have it hook into generate_after_navigation
Hi there,
thats one method.
Or you can use a Block Element instead of a Header Element, then you can construct your own hero, with the Title followed by a Container Block which has a min height applied to it and your background image.
https://docs.generatepress.com/article/block-element-page-hero/
One of the built in options if you select the Element Type > Page Hero, is to Disable Title, which will remove the theme title :)
Perfect, thank you so much David!
You're welcome