Tagged: x
-
AuthorPosts
-
June 21, 2016 at 3:19 pm #1053163
jasonfoxParticipantI need the sticky header to change to a solid background color on scroll.
June 21, 2016 at 3:25 pm #1053168
JoaoModeratorHi There,
Please add the following codes to Appereance Customizer Custom CSS
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; }And the following code to Appereance Customizer CUstom JavasScript
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
June 21, 2016 at 3:42 pm #1053190
jasonfoxParticipantThank you for your quick reply.
I have added the code but it is not working?
June 21, 2016 at 3:44 pm #1053192
JoaoModeratorHi There,
Please check again if you used the code correctly.
If yes and it still does not work, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks
Joao
June 21, 2016 at 4:07 pm #1053230
jasonfoxParticipantThis reply has been marked as private.June 21, 2016 at 11:20 pm #1053735
RupokMemberHi there,
Thanks for the credentials. I have checked and seems you didn’t even add the CSS that was suggested. I have placed the code and it’s working fine as expected.
Cheers!
June 22, 2016 at 12:45 pm #1054720
jasonfoxParticipantThank you.
June 22, 2016 at 2:02 pm #1054892
JoaoModeratorGreat to hear it.
Let us know if you need help with anything else.
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1053163 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
