Tagged: x
-
AuthorPosts
-
April 1, 2016 at 9:38 pm #863369
Hey there!
I’d like to be able to do this same here as found in this theme: https://pixelgrade.com/demos/themes/?product=rosa
It’s transparent in the hero image, but as soon as you hit the content, the background turns white. Is this possible?
April 1, 2016 at 9:38 pm #863370This reply has been marked as private.April 2, 2016 at 8:37 am #863772Hi there,
Please add the following code in Customize -> Custom -> CSS :
.x-navbar { background-color: transparent; margin-top: -71px; } .x-navbar.x-navbar-fixed-top { margin-top: 0; background-color: #282828; }
Hope that helps.
April 5, 2016 at 3:53 pm #868176That didn’t work.
The navbar disappears completely until you start scrolling.
April 6, 2016 at 5:26 am #868948Hi there,
Please update previous code to following :
@media (min-width:979px){ header.masthead.masthead-inline { height: 0; } .x-navbar.x-navbar-fixed-top.white { background-color: #282828; } .x-navbar { background-color: transparent; box-shadow: none; border: none; } }
Add this in Customize/Custom/JavaScript :
jQuery(document).ready(function($){ $('.x-navbar-fixed-top').addClass("transparent-navbar"); $(window).scroll(function(){ if ($(this).scrollTop() > 500) { $('.x-navbar-fixed-top').removeClass("transparent-navbar").addClass("white"); } else { $('.x-navbar-fixed-top').removeClass("white").addClass("transparent-navbar"); } }); });
Hope it helps.
April 6, 2016 at 1:29 pm #869818It worked!
You’re the man, Christopher! Thank you!
April 6, 2016 at 1:58 pm #869856Glad to be able to help 🙂
-
AuthorPosts