- This topic has 8 replies, 2 voices, and was last updated 3 years, 9 months ago by
Tom.
-
AuthorPosts
-
August 15, 2018 at 8:37 am #649358
Dinant
I am trying to replace my page header with an element of type header.
The result is that the content is being placed behind the header.
Looks like the old “Place content behind header” option which I didn’t use.GeneratePress 2.1.3GP Premium 1.7August 15, 2018 at 8:49 am #649379Dinant
I think it has something to do with the content field which only contains the text “<!– page header –>”.
August 15, 2018 at 9:05 am #649398Tom
Lead DeveloperLead DeveloperHi there,
This is what the new “Offset Header Height” option is for.
Enter the height of your header in that field, and it will prevent overlapping.
You can find the height of your header by right clicking your page and selecting “Inspect”.
Then hover over the site header element, and you’ll see the dimensions. Will get a tutorial out for this today π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 15, 2018 at 9:30 am #649439Dinant
Ok, I understand the new offset header field.
If I put 216px (height of header incl height of primary menu) for desktop mode the content is ok in desktop mode.
If I add 156px in mobile mode the content is also ok in mobile mode. But If the width of the screen is sized under 393px a box with the background color is shown. This was not the case with the legacy Page Header.August 15, 2018 at 9:35 am #649446Tom
Lead DeveloperLead DeveloperThe old page header used a different method to merge, which complicated the HTML quite considerably.
This is happening because your tagline goes onto two lines at that width.
Any reason you’re using the merge option on this page? That layout should be achievable without using Elements/a merged site header.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 15, 2018 at 9:43 am #649463Dinant
Ok, I only want a background image for the header. Therefore I’ve used the Page Header in the past.
Is there is better solution to achieve a background image for the header?August 15, 2018 at 9:44 am #649465Tom
Lead DeveloperLead DeveloperYou can use the Backgrounds module: https://docs.generatepress.com/article/backgrounds-overview/
Simply add your background image to the Header background area and you should be good to go π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 15, 2018 at 9:54 am #649487Dinant
Ok that looks much better.
Thanks for your help.August 15, 2018 at 9:56 am #649492Tom
Lead DeveloperLead DeveloperYou’re welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.