Archived topic
Page Header Module deactivated by mistake
15 replies · Started by J on January 23, 2020
Upon adding a new post, I didn't see the Page Header Module displayed, so I deactivated the Page Header Module by mistake thinking that if I reactivated it again I would see it in the Screen Options. I didn't realize that it was repalced by Elements in the newer versions of your theme.
What can I do if anything to get back all my global locations? Perhaps rolling back to an earlier version of Generate Press Pro?
Thank you.
Hi there,
If you go to Appearance > Elements at the top of the Display you should see Legacy Page Headers.
The problem is that I deactivated the Page Header Module, so I don't see the Legacy Page Headers.
Sorry - i so obviously didn't read that ....
Tom provides an answer here on how to recover the old module:
That doesn't work. I still don't see the Legacy Page Headers.
That should allow you to select the Page Header Module in Appearance > GeneratePress
No, the Page Header Module is not there.
All I want to do, which I cannot using the Elements Module, is to display the post title on the featured image at the top of the post.
Whats wrong with using the Header Element ? It works in much the same way as the Page Headers did.
Except for what I want to do. I just want to display the post title in the feature image, but Elements only displays the title under the menu. (See screenshot.)
Or, just go here to see what I'm talking about.
https://www.atnnow.com/ten-awesome-historical-words-we-should-bring-back/
Ok so i assume you want it displayed where the standard featured image does ie. within the content.
To do that you need the PHP snippet provided here:
https://docs.generatepress.com/article/generate_page_hero_location/
Then in the Header Element:
1. Add some top and bottom padding to create the necessary height of the image.
2. Set the Background Image > Featured Image
3. Disable the Featured Image to remove it from the default featured image from the post content.
Let me know if thats correct
Getting close, but I can't find where to put the PHP snippet.
This document explains how to add PHP:
That snippet worked. The white text on featured image background didn't stand out too well, so I just changed the background to a solid color. It doesn't look too bad.
https://www.atnnow.com/ten-awesome-historical-words-we-should-bring-back/
I think this topic is resolved. Thanks for your all your help and for being so patient.
I still need to explore all that the Elements Module can do, but I must admit it's a great improvement over the old Page Header Module.