hello, on the mobile menu im looking to make the background of the header transparent, but keep the menu drop down white. Is this possible?
Mobile menu background
4 replies · opened Jul 20, 2022
Hello,
Thanks for your Kind Patience!
Currently, Mobile Transparent Headers are not supported out of the box and also given the structure we are not 100% sure if small customizations will work work with all the Header functionalities. We have tried Customizing this and you can consider using the following CSS Codes:
[ch_pre type="css"]@media (max-width: 991.98px) {
body:not(.primary-menu-open) #header,
body:not(.primary-menu-open) #header-wrap {
background: transparent !important;
border-bottom: 0 !important;
z-index: 499;
}
body:not(.primary-menu-open) #header + .include-header {
margin-top: -100px;
}
}[/ch_pre]
This appears to be working well for us upon testing. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Thank you!
I noticed an issue, perhaps you can help me figure a solution?
I have mobile sticky active and would like the transparency to switch to white on scroll just like the desktop header.
One more thing, can i adjust the bg color of the menu that drops down on mobile after clicking the svg-trigger?
Hello,
Thanks for your Kind Patience!
As we have mentioned, since this functionality is currently not supported out of the box, the flexibility is a little limited in this with customizations. So the Sticky Header currently can only be one background at the moment. We are working on Transparent Mobile Headers at the moment and will introduce this in Canvas 7. Thanks for your Understanding on this.
You can consider using this code:
[ch_pre type="css"]@media (max-width: 991.98px) {
#header-wrap {
background-color: #E2E2E2;
}
}[/ch_pre]
This will definitely work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard