Archived topic
Change width in custom Off-Canvas Overlay
3 replies · Started by Michael on June 30, 2021
Hey there
Is this possible to achieve with the inside_slideout_navigation hook added with a block > container > grid > 50% and 50%?

I tested it for some time without the proper result.
I can´t address the width of the "Logo" and "close" button container inside the overlay. I mean I didn´t find the selectors I have to change.
The width always stays narrow.

Can you give me a hint in the right direction please?
Thanks in advance.
Best regards
Mike
Hi there,
try this CSS:
.slideout-navigation.do-overlay .inside-navigation,
.slideout-navigation.do-overlay .inside-navigation .main-nav,
.slideout-navigation.do-overlay .inside-navigation .slideout-widget{
padding: 40px;
max-width: 1200px;
width: 100%;
margin: auto;
}
This will open up the width of the inner container / nav / widget area.
And you may need to give your custom-hooked-element its own CSS class and give it a width: 100%; property to stop it from collapsing due to the margin: auto property which keeps the content centered.
Thank you David.
It works perfectly!
Best regards
Mike
Glad to hear that!