Tagged: x
-
AuthorPosts
-
April 30, 2016 at 3:17 am #906694
ottobonoParticipantHi Rue, sorry for not understanding what you told me 🙁 by the way… it works! Thank you!
Edit: it works, but when I resize back to the desktop view the 4th sidebar stays on the bottom. How to bring it back?
I now have this js code in custom
jQuery(document).ready(function($) { $('.x-nav-tabs>li>a').off('touchstart'); $('.x-nav-tabs>li>a').on('click', function() { $('html, body').animation().stop(); }); }); jQuery(function($){ $(window).on('load resize', function(){ var W = $(window).width(); if(W < 980){ $('.x-sidebar').insertBefore('.x-main'); $('#woocommerce_top_rated_products-2').appendTo('.x-main'); } }); })(jQuery);April 30, 2016 at 11:22 pm #907448
Rue NelModeratorHello Again,
To bring back the old position when your resize your browser, please update the code and use this instead:
(function($){ $(window).on('load resize', function(){ var W = $(window).width(); if(W < 980){ $('.x-sidebar').insertBefore('.x-main'); $('#woocommerce_top_rated_products-2').appendTo('.x-main'); } else { $('.x-sidebar').insertAfter('.x-main'); $('#woocommerce_top_rated_products-2').appendTo('.x-sidebar'); } }); })(jQuery);Hope this helps.
May 1, 2016 at 4:01 am #907632
ottobonoParticipantIT WORKS! Yes, finally! Thank you very very much Rue!
May 1, 2016 at 10:52 am #907963
RupokMemberYou are welcome!
Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-873018 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
