- This topic has 13 replies, 4 voices, and was last updated 4 years, 10 months ago by
Ying.
-
AuthorPosts
-
May 23, 2021 at 10:48 am #1795140
Gayle
Hello,
I’m using a GP Element (Block – Site Header) for my site header, with the Primary Navigation set to display above it. I’ve set a logo in Site Identity, but for some reason the logo does not display inline with the navigation bar in either tablet or desktop view, and I can’t figure out why not. It does display correctly on the sticky nav, and also in mobile. Help!
May 23, 2021 at 1:23 pm #1795226Leo
StaffCustomer SupportHi there,
Do you have a logo uploaded under Site identity?
https://docs.generatepress.com/article/adding-header-logo/Let me know 🙂
May 23, 2021 at 1:40 pm #1795244Gayle
Yep.
May 23, 2021 at 1:46 pm #1795251Leo
StaffCustomer SupportDo you have this option activated?
https://docs.generatepress.com/article/navigation-as-a-header/If not can you try activating it?
May 23, 2021 at 2:08 pm #1795266Gayle
Global logo is definitely loaded under Site Identity; just to be sure I removed it and replaced it with a new version. Same behavior, I’m afraid.
Navigation-as-header is not selected. Oddly enough, when I DO select it, the logo DOES appear, but the logo + nav bar displays below my Block – Site Header element. Unfortunately I need the logo + nav to be above the header.
May 23, 2021 at 6:20 pm #1795345Elvin
StaffCustomer SupportHi Gayle,
After setting the “Navigation-as-header” on, can you try setting the site to flexbox?
Go to Appearance > Customize > General and set the “Structure” dropdown to “Flexbox”.
Let us know how it goes.
May 24, 2021 at 7:58 am #1796234Gayle
Thanks Elvin – I switched the Structure from Floats to Flexbox (and cleared my cache ☺ ), but there was no change.
However: I just tested the behavior using the Element Type “Header” instead of Element Type “Block – Site Header.” This actually seems to behave as expected, with the logo + nav displaying above the header’s static background image.
Unfortunately the Header Element doesn’t offer the handy building tools available in the Block Element, and I’m not conversant with SVG. But if someone could help me figure out how to code the wave shape w/ the fixed background, I’d be all set.
May 24, 2021 at 9:32 am #1796339Leo
StaffCustomer SupportSorry so have we figured out the logo issue?
The wave shape requires GenerateBlocks unfortunately.
May 24, 2021 at 9:50 am #1796361Gayle
Well, since it sounds like I need to use the Block – Site Header Element in order to get the wave shape I need, we’re still at Square One. The logo displays correctly only if the navigation is set to appear after the header. When the nav bar is set to display above the header, the logo still disappears.
May 24, 2021 at 10:07 am #1796384Leo
StaffCustomer SupportMaybe try adding the logo in the block site header element?
If that doesn’t help, do you have an example of the result you’d like to achieve?
May 24, 2021 at 11:04 am #1796430Gayle
Hi Leo – for result I’m trying to achieve, please see links in the Private Info section below.
May 24, 2021 at 11:45 am #1796462Ying
StaffCustomer SupportHi Gayle,
For the wave shape header, I suggest you use the GP default navigation and header and create a block element hook to
before_header. Then there won’t be logo disappearing issue:
https://www.screencast.com/t/ZF7iDL0HRy
1. Add a GB container block.
2. Under the spacing tab, add a min height to the container.
3. Under the background tab, add a background image to it, set Attachment to fix.
5. Under the shape tab, add a shape, set its height and color ( #fffff in your case).The element setting is as below:
https://www.screencast.com/t/9OxoURVYc8kyFor the navigation, if you use the GP navigation,
1. Go to customizer > layout > header, check the navigation as header box.
2. Go to Customizer > Layout > Primary navigation, set Navigation Width and Inner Navigation Width both to full.Hope that’s helpful! 🙂
May 24, 2021 at 12:14 pm #1796490Gayle
YES! I was able to recreate my original design in the Block – Hook element, and then used the settings you suggested. At first it didn’t work, but then I realized I needed the after-header hook instead of before-header, and voila!
Many thanks,
Gayle
May 24, 2021 at 2:13 pm #1796585Ying
StaffCustomer SupportYou are welcome Gayle 🙂
Glad it works!
-
AuthorPosts
- You must be logged in to reply to this topic.