Tagged: x
-
AuthorPosts
-
May 9, 2016 at 4:13 am #981909
wmagroupParticipantHi,
Currently have some custom code to get the header transparent and positioned over the top of the revolution slider.
Would like to get it so that once users have scrolled past the revolution slider the header background turns turns black.As you’ll be able to see once you scroll past the slider you cant read the menu anymore.
website is http://www.wma.com.au
Thanks.
May 9, 2016 at 5:19 am #981975
Paul RModeratorHi,
Thanks for writing in!
To make it black on scroll, you can add this under Custom > Edit Global CSS in the Customizer.
.x-navbar.x-navbar-fixed-top { background-color: #000 !important; }Hope that helps.
May 9, 2016 at 5:31 am #981992
wmagroupParticipantHi Paul,
Thats great! Just also wondering when you scroll back up to the top if there is a way for it to back transparent.
Thanks.
May 9, 2016 at 6:29 am #982074
ThaiModeratorHi There,
Please add the following code under Customizer > Custom > Global Javascript:
jQuery(document).ready(function($){ $(window).scroll(function(){ if ($(this).scrollTop() == 0) { $('.x-logobar').removeClass('x-navbar-fixed-top'); } }); });Hope it helps 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-981909 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
