Hello, how can I allow transparent header ONLY on desktop. It becomes sticky on scroll. I want it to be with white bar by default on mobile. How can I do this?
Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):
@media only screen and (max-width: 999px) and (min-width: 1px) {
.material #header-outer[data-transparent-header="true"][data-mobile-fixed="1"].transparent {
background-color: #ffffff !important;
}
#header-outer[data-transparent-header="true"][data-transparent-shadow-helper="true"].transparent:not(.dark-slide):before {
background: none !important;
}
#header-outer.transparent[data-permanent-transparent="false"] #top .slide-out-widget-area-toggle.mobile-icon i:before, #header-outer.transparent[data-permanent-transparent="false"] #top .slide-out-widget-area-toggle.mobile-icon i:after, body.material.mobile #header-outer.transparent:not([data-permanent-transparent="1"]) header .slide-out-widget-area-toggle a .close-line, body #header-outer[data-permanent-transparent="1"].transparent:not(.dark-slide) > #top .span_9 > .slide-out-widget-area-toggle .lines-button:after, body #header-outer[data-permanent-transparent="1"].transparent:not(.dark-slide) > #top .span_9 > .slide-out-widget-area-toggle .lines:before, body #header-outer[data-permanent-transparent="1"].transparent:not(.dark-slide) > #top .span_9 > .slide-out-widget-area-toggle .lines:after, #header-outer[data-lhe="animated_underline"].transparent .nectar-header-text-content a:after {
background-color: #000 !important;
}
}
Thank you! When I scroll down on mobile I notice the dropshadow appears after scrolling down since the theme's header appears. Is it possible to apply the same dropshadow to the code you provided and stop the theme header from appearing the mobile view?
Hello, how can I allow transparent header ONLY on desktop. It becomes sticky on scroll. I want it to be with white bar by default on mobile. How can I do this?
Hi There,
Please send in your website url.
Thanks.
Hi There,
Please try this css:
Thanks.
I tried it. can you make it so the default position when site loads the bar is white. right now its a brownish color.
Also can you push the home page banner down... right now the bar is covering the banner.
Hey Again,
Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):
Thanks
ThemeNectar Support Team
Thanks Tahir. We're almost there!
Please see attached... can we somehow move the banner down so it starts AFTER the top nav on mobile devices?
Also, is can you add a control in there to control the height of the nav bar in mobile? That would be great.
Thanks!
You see the whole face is being cut off cuz the banner is behind the nav instead of under the nav.
Hey Again,
Try adding padding to the Row on Mobile using the Page Builder Element Settings :
Thanks
ThemeNectar Support Team
Thank you! When I scroll down on mobile I notice the dropshadow appears after scrolling down since the theme's header appears. Is it possible to apply the same dropshadow to the code you provided and stop the theme header from appearing the mobile view?
Hi There,
Please try this css:
Thanks.
Thank you, please close this ticket.