Tagged: x
-
AuthorPosts
-
June 1, 2016 at 5:29 pm #1020929
Adwin LParticipantHi there, I am currently working on: http://52.25.40.201/~johnsonmarquez/
I used a code provided by X Theme support to allow my topbar to be included in the fixed nav through a child theme. This works perfectly, however the only problem is when I scroll back to the top of the page, the fixed nav remains, when usually every time you scroll to top the main navigation appears. Is there a code I can use to fix this? I’ve customized the fixed nav so they are both fairly different.
Thank you!!
June 2, 2016 at 12:45 am #1021513
NicoModeratorHi There,
Thanks for writing in.
Try adding this in your customizer > custom > JS:
jQuery(function($) { // On scroll $(window).scroll(function(){ if( $(this).scrollTop() < 1 ) { $('.x-navbar').removeClass('x-navbar-fixed-top'); } }); });Hope it helps.
Let us know how it goes.
Thanks.
June 10, 2016 at 4:47 pm #1036481
Adwin LParticipantPerfect, thank you!
June 10, 2016 at 11:05 pm #1036898
Prasant RaiModeratorYou are most welcome. 🙂
June 20, 2016 at 2:25 pm #1051245
Adwin LParticipantHi again,
If you take a look at the same site on Safari vs Crome, on Safari there is a white gap under the header on the homepage only that doesnt show up in chrome. I can’t figure out why/how to get rid of it! Could you please help me with this? http://52.25.40.201/~johnsonmarquez/
June 20, 2016 at 6:37 pm #1051555
JadeModeratorHi Adwin,
Please find and update this code:
.x-brand { position: relative; bottom: 40px; left: 5%; background-color: rgba(255,255,255,.95); padding: 0px 70px 20px 20px; z-index: 999; }to
.x-brand { position: relative; bottom: 40px; left: 5%; background-color: rgba(255,255,255,.95); padding: 0px 70px 9px 20px; z-index: 999; }Hope this helps.
June 27, 2016 at 11:42 am #1061787
Adwin LParticipantHi, this did not work. Anything else I can try?
June 27, 2016 at 1:58 pm #1061978
RupokMemberHi there,
Let’s try this instead (replace previous):
.x-brand { background-color: rgba(255, 255, 255, 0.95); bottom: 40px; left: 5%; padding: 0 70px 9px 20px; position: relative; z-index: 999; margin-bottom: -40px; }Hope this helps.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1020929 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
