Tagged: x
-
AuthorPosts
-
May 19, 2016 at 6:58 am #999253
dalatarzanParticipantHi.
I have an issue with unwanted scrolling when on a woocommerce product page and click on the TAB´s for Description, Additional Information and Reviews. Have a look here please: http://2.b-light.se/shop/men/tops-yoga-sportswear/organic-cotton-yoga-t%E2%80%91shirt-devadara-classic-blue/Everytime you click one of the above mentioned TAB´s the page scrolls down a bit.
I read about something almost similar in this forum but it was regarding to accordion. I don´t have that issue though.
Any ideas how this can be fixed?
Thanks a lot.
JonasMay 19, 2016 at 8:06 am #999341
Paul RModeratorHi Jonas,
To fix it, you can add this under Custom > Edit Global Javascript in the Customizer.
$( function($) { $(document).on('click', '.x-nav-tabs>li>a', function( e ){ $('html, body').stop(); }); });If that doesn’t help please provide us your wordpress admin login in private reply so we can take a closer look.
Thanks
May 19, 2016 at 9:37 am #999509
dalatarzanParticipantThanks. I will add it and let you know. I just noted that the very same TAB´s don´t work at all on mobile? Same error?
Just tried the code above but no change. Will send login details.Thanks!
May 19, 2016 at 9:39 am #999513
dalatarzanParticipantThis reply has been marked as private.May 19, 2016 at 3:34 pm #1000235
RadModeratorHi there,
I added this,
jQuery( function($) { $(document).ready( function() { setTimeout ( function(){ $('.x-nav-tabs>li>a').on('click', function(){ $('html, body').stop(); } ); }, 100 ); } ); });Please check now, thanks!
May 20, 2016 at 2:57 am #1001153
dalatarzanParticipantHi. It works fine on desktop pc but not on mobile. On mobile they are not even clickable.
Jonas
May 20, 2016 at 3:21 am #1001176
Rue NelModeratorHello Jonas,
Could you please update the JS code and use this instead:
jQuery( function($) { $(document).ready( function() { setTimeout ( function(){ $('.x-nav-tabs>li>a').on('click touchend', function(){ $('html, body').stop(); } ); }, 100 ); } ); });Hope this helps.
May 24, 2016 at 2:35 am #1006739
dalatarzanParticipantSorry, but it still doesnt work on mobile devices.
Any new ideas?Jonas
May 24, 2016 at 3:23 am #1006784
Paul RModeratorHi,
Please change the code to this.
jQuery( function($) { $(document).ready( function() { setTimeout ( function(){ $('.x-nav-tabs>li>a').on('click touchstart touchend', function(){ $('html, body').stop(); } ); }, 100 ); } ); });Make sure to clear your mobile browser cache before checking.
Thanks
May 24, 2016 at 11:37 pm #1008488
dalatarzanParticipantNope, no change on mobile devices. Did you check on your phone? Did it work there?
The Tabs are not clickable at all on mobile for me.Jonas
May 25, 2016 at 2:56 am #1008649
LelyModeratorHello Jonas,
I did check again and it is not working on my mobile. Please try adding the following code too.
$(document).ready(function() { $('.x-nav-tabs>li>a').off('click touchstart touchend'); });Hope this helps.
May 25, 2016 at 1:55 pm #1009622
dalatarzanParticipantYou meen like this:
jQuery( function($) {$(document).ready( function() {
setTimeout ( function(){ $(‘.x-nav-tabs>li>a’).on(‘click touchstart touchend’, function(){
$(‘html, body’).stop();
} ); }, 100 );
} );
});
It makes not change on my Samsung S5, Android device.
The Tabs are still completely freezed, not clickable.Jonas
May 25, 2016 at 8:08 pm #1010130
RadModeratorHi there,
This is wrong,
jQuery( function($) { $(document).ready( function() { setTimeout ( function(){ $('.x-nav-tabs>li>a').on('click touchstart touchend', function(){ $('html, body').stop(); } ); }, 100 ); } ); }); $(document).ready(function() { $('.x-nav-tabs>li>a').off('click touchstart touchend'); });try this one
jQuery( function($) { $(document).ready( function() { setTimeout ( function(){ $('.x-nav-tabs>li>a').off('touchstart touchend').on('click touchstart touchend', function(){ $('html, body').stop(); } ); }, 100 ); } ); });Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-999253 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
