Tagged: x
-
AuthorPosts
-
May 2, 2016 at 11:55 am #909385
mymeiParticipantI recently tested a few forums to make the navigation transparent and added jquery to the custom CSS to make it white when scrolling (which worked initially), but it’s not working now. Please advise. Thanks in advance!
Site: New.TheBedrock.com
May 2, 2016 at 2:56 pm #909671
JoaoModeratorHi There,
Please add this Code to your Appearence / Customizer / CSS
body.home .x-navbar-wrap { height: auto !important; } body.home .x-navbar { background-color:transparent; border:0; box-shadow:none; position: fixed; width:100%; } body.home .x-navbar-solid { background-color:white;And this Code to Appearence / Customizer / Javascript
jQuery(function($) { $(window).scroll(function(){ if($(window).scrollTop() >50) { $('.x-navbar').addClass("x-navbar-solid"); }else { $('.x-navbar').removeClass("x-navbar-solid"); } }); });Hope that helps
Joao
May 3, 2016 at 1:59 pm #911291
mymeiParticipantThe code provided still appears to not do anything. Please let me know if there is conflicting code elsewhere and/or whether code needs to be added/changed.
Thanks in advance.
New.TheBedrock.comMay 3, 2016 at 10:24 pm #911802
JadeModeratorHi Cebrina,
Please add this CSS:
.x-navbar-fixed-top { background-color: #fff !important; padding-bottom: 20px; }Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-909385 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
