Tagged: x
-
AuthorPosts
-
November 9, 2016 at 6:32 am #1249940
RevoSportParticipantHi all,
I’m having a question about the nav bar on my website: http://www.revosport.be/
Is it possible to just hide my logo on in the nav bar on my main page?
However i just want it hided during the layerslider, passing that (section with the ‘welkom bij revo sport), it reveals the logo? I hope it’s clear for you guysKinds regards,
Frédéric
November 9, 2016 at 7:28 am #1249999
Paul RModeratorHi Frédéric,
You can add this under Custom > Edit Global CSS in the Customizer.
.home .x-brand.img { display:none; }Then add this in Custom > Edit Global Javascript in the Customizer.
jQuery(function($) { var $sliderheight = $('.x-slider-container.below').outerHeight(); $(window).scroll(function() { if ( $(this).scrollTop() >= $sliderheight ) { $('.x-brand.img').css('display','block'); } else { $('.x-brand.img').css('display','none'); } }); });Hope that helps.
November 9, 2016 at 9:12 am #1250149
RevoSportParticipantThis is exactly what i was looking for!
Just one remark, is there any possiblity to keep the logo in ipad/mobile version?November 9, 2016 at 9:28 am #1250178
ThaiModeratorHi There,
Please also add the following CSS:
@media (max-width: 979px){ .x-brand.img { display: block !important; } }Hope it helps 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1249940 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
