- This topic has 8 replies, 4 voices, and was last updated 3 years, 3 months ago by elsa.
October 30, 2017 at 10:07 pm #413409Lyle
I came across this behavior when assisting someone on the GP FB group.
The OP wanted to add an email address to the upper right of the header that has the Header Alignment set to Centered. No problem. Add an HTML widget with the link to the Header widget position.
However doing so shifts the Site Title to the left. I tried setting the .header-widget max-width to a lower value and it helped, but still not completely centered.
Tutorials and tips for GeneratePress, WP Show Posts, WordPress and ElementorGP Premium 1.4.3October 30, 2017 at 10:43 pm #413419LeoStaffCustomer Support
Tom suggested using absolute position for header widget here: https://generatepress.com/forums/topic/keep-logo-centered-when-adding-widgets-to-header/#post-41457
I think the split header method might work better though as you would have more control over the layout: https://docs.generatepress.com/article/split-header-three-sections/October 30, 2017 at 10:54 pm #413422Lyle
Thanks Leo 🙂
I’m with Tom on absolute positioning so will give the split header method a go 🙂
Tutorials and tips for GeneratePress, WP Show Posts, WordPress and ElementorOctober 30, 2017 at 11:01 pm #413429TomLead DeveloperLead Developer
One day maybe we’ll make the switch to Flexbox in the header. It would help with stuff like this, but currently requires a bunch of pollyfils for older browsers.October 30, 2017 at 11:09 pm #413432Lyle
That would be great, Tom 🙂
My “vision” for the “ultimate GP header” would have it structured like the footer widgets, where on can select how many “header widgets” one wants. There would then need to be three new widgets: GP site logo, GP site title and GP site description, all pulling from the info set up in the Customizer 🙂 Drag them to the desired header widget locations, along with any other widgets that fits your fancy.
I know you are loath to code bloat, but I can always dream! 🙂 And no need to build the header with a page builder!
Tutorials and tips for GeneratePress, WP Show Posts, WordPress and ElementorOctober 31, 2017 at 8:56 am #413702TomLead DeveloperLead Developer
Definitely an interesting idea. The hard part is making it backward compatible with the 90,000+ people using the standard GP header 😉October 31, 2017 at 2:28 pm #413886Lyle
Perhaps in a new Premium GP child theme? 😉 I’d pay for that!
Tutorials and tips for GeneratePress, WP Show Posts, WordPress and ElementorFebruary 7, 2018 at 8:29 pm #490975elsa
How to insert widget and secondary menu to the right part after splitting the header?
ThanksFebruary 7, 2018 at 8:31 pm #490976elsa
I’ve found it on the post, thanks.
- You must be logged in to reply to this topic.