Tagged: x
-
AuthorPosts
-
July 16, 2016 at 10:08 am #1089882
DOFIParticipantHEllo,
i have 3 questions:
1) how make the sidebar sticky (keep it on the left as we scroll)
i looked the code provided here and it doesn’t work 🙁
2) The background of my menu is transparent: how can i have something more decent?
3) is it possible to put a texture on the side (under my menu and all the left part of the page)
thank you very much
July 16, 2016 at 11:13 am #1089921
ThaiModeratorHi There,
Please add the following javascript under Customizer > Custom > Global Javascript:
jQuery(function($) { $(window).scroll(function() { if( $(window).width() < 980 ){ return false; } var scrollPos = $(window).scrollTop(); if( scrollPos > 125 ) { $(".x-sidebar").addClass('fixed-sidebar'); } else { $(".x-sidebar").removeClass('fixed-sidebar'); } }); });Please add the following CSS under Customizer > Custom > Global CSS:
.x-sidebar.fixed-sidebar { position: fixed; max-width: 213px; top: 0; } .widget ul li, .widget ol li { background-color: #f0f0f0; }Hope it helps 🙂
July 19, 2016 at 3:14 pm #1094109
DOFIParticipanthello !
thank you very much, it almost works: the first items are hidden and the column gets smaller
thank you again,
July 19, 2016 at 7:04 pm #1094371
JadeModeratorHi there,
It seems that the admin bar covering the top area of the sidebar is normal.
Normal users can view the sidebar correctly when the site width shrinks.
See screenshot attached.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1089882 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
