Tagged: x
-
AuthorPosts
-
October 28, 2016 at 5:13 am #1234605
SamParticipantI managed to create a transparent header with masthead set to 0 but I would like the logo and menu to disappear once user scrolls up.
Is this possible?
October 28, 2016 at 7:52 am #1234713
Paul RModeratorHi,
Thanks for writing in!
You can add this under Custom > Edit Global CSS in the Customizer.
.x-navbar.x-navbar-fixed-top { display:none; }Hope that helps.
October 31, 2016 at 2:08 pm #1238275
SamParticipantHi Paul,
This removes the navbar completely. Is this expected?
October 31, 2016 at 2:11 pm #1238281
JadeModeratorHi Sam,
Would you mind sharing your site URL so that we could take a better look at it?
Thank you.
November 1, 2016 at 2:48 pm #1239679
SamParticipantThis reply has been marked as private.November 1, 2016 at 11:23 pm #1240238
RupokMemberHi there,
Thanks for writing back. Let’s use the solution below.
#1. You can add this under Custom > JavaScript in the Customizer.
jQuery(document).ready(function($) { $(window).scroll(function() { var scrollPos = $(window).scrollTop(), navbar = $('.x-navbar'); if (scrollPos > 100) { navbar.addClass('hide-navbar'); } else { navbar.removeClass('hide-navbar'); } }); });#2. Then add this under Custom > CSS in the Customizer.
.x-navbar { transition: all 0.2s ease 0s; } .x-navbar.hide-navbar { opacity: 0; }Hope this helps.
November 2, 2016 at 6:45 am #1240604
SamParticipantHi Jade and Rupok,
Thanks for your awesome support.
Works like a charm.
November 2, 2016 at 7:29 am #1240644
ThaiModeratorGlad we’re able to help 🙂
If you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1234605 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
