-
sterndesign
Hi there,
I’m using a block element to add the site header seen here: https://turnkeylocal.net/
When you hover on the “Services” menu item, you can see that the sub menu is cut off by the bottom of the header container.
Any idea on how to fix?
Thanks as always!
-
Hi there,
1. add this CSS:
.site-wrapper { z-index:100; position:relative; }
2. remove
hidden
fromoverflow-x
andoverflow-y
from the nav container.Plus I don’t think the site-wrapper element is applied to the correct position. You might want to check that, and it also might be better to use this method to make the page full width instead of using the WP align full option.
-
sterndesign
Thanks Ying. Can you clarify two things?
1) What do you mean by the site-wrapper element is applied incorrectly?
2) As for the full width approach, are you referring to the header element or the homepage?
Thanks!
-
1. the
site-wrapper
is inside theheader-wrapper
, and theheader-wrapper
wraps the site, it doesn’t look right:
https://app.screencast.com/LzfLcsnxhiJyb2. The entire page.
-
sterndesign
hmm, I see what you mean. That issue only appears to be on the homepage. Could it have something to do with the Transparent Header Element? That element is only used on the homepage.
Regarding the full-width suggestion, I set the content container to “Full-Width” and set the hero section block alignment to “Default.” I believe that’s what you meant.
-
Yes, the
header-wrapper
is added by merged header element, it’s likely caused by HTML error in the header element content. Please check if you miss anything closing tag.Regarding the full-width suggestion, I set the content container to “Full-Width” and set the hero section block alignment to “Default.” I believe that’s what you meant.
Yes, that’s what i meant 🙂
-
sterndesign
Thanks Ying,
I’m not sure how a closing tag would be missing, since I’m using the block editor to build the element. But I’m not a great dev, so maybe I’m misunderstanding. 😉
Could it be that the header element uses legacy global styles?
-
I don’t know, it’s hard to tell.
Global style is CSS, it does not interfere with HTML.
Try disable the merge function of the header element to see. 🙂
-
sterndesign
Nice one, Ying. I think that did the trick. Appreciate the help!
-Matt
-
No Problem 🙂
- You must be logged in to reply to this topic.