Tagged: x
-
AuthorPosts
-
August 29, 2016 at 10:23 am #1151905
neodjandreParticipantHi,
I am using the integrity theme and I would like my menu to behave like this:
http://themenectar.com/demo/salient-frostwave/
i.e. it should start as transparent and become solid when the user starts to scroll.
Any help would be much appreciated!
best,
AndyAugust 29, 2016 at 10:26 am #1151910
JoaoModeratorHi Andy,
Add the following code to Appereance Customizer Custom CSS
.x-navbar-wrap { height: auto !important; } .x-navbar { background-color:transparent; border:0; box-shadow:none; position: fixed; width:100%; } .x-navbar-solid { background-color:white; }Add the following code to Appereance Customizer Custom 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
August 29, 2016 at 2:48 pm #1152295
neodjandreParticipantperfect that works fine. I just need to put some css to make the transition smoother i think !
August 29, 2016 at 3:20 pm #1152337
neodjandreParticipantThis reply has been marked as private.August 29, 2016 at 3:44 pm #1152370
JoaoModeratorHi Andy,
Based on your design I believe the best would be the best to turn off the bread crumbs.
To do that you go to Appereance > Customizer > Header.
Let us know your toughts,
Joao
August 29, 2016 at 4:27 pm #1152412
neodjandreParticipantok, I think i will modify your code to only fire on pages with a certain body class and keep the menu as before on all other posts, so that breadcrumbs would work. thanks for the help 🙂
August 30, 2016 at 12:26 am #1152821
LelyModeratorYou’re welcome!
Do let us know if you need further assistance.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1151905 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
