Tagged: x
-
AuthorPosts
-
January 31, 2017 at 1:15 pm #1352640
joshnurseParticipantHi Guys,
On Woocommerce Single product pages, the Tabs are working fine on desktop, but nothing is happening on mobile devices?
Could you please take a look and advise.
Thanks.
January 31, 2017 at 1:17 pm #1352642
joshnurseParticipantThis reply has been marked as private.February 1, 2017 at 12:01 am #1353247
RupokMemberHi there,
Thanks for writing in! I have checked and it’s working fine on mobile.
Cheers!
February 2, 2017 at 10:42 am #1355414
RoboPhilParticipantHi,
I am seeing the same issue with my site built with X-theme. Using a group product, tabs working on usual desktop view but don’t work consistently on mobile view. Testing with iOS simulator and actual mobile devices.
Any ideas what could be causing this?
Phil
February 2, 2017 at 10:43 am #1355417
RoboPhilParticipantThis reply has been marked as private.February 2, 2017 at 2:50 pm #1355700
Nabeel AModeratorHi again,
To fix the issue, please add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
jQuery( function($) { $('.wc-tabs li a').on('click', function( e ){ setTimeout( function() { $('html, body').stop().stop(); }, 100 ); }); $(document).ready(function() { $('.wc-tabs li a').off('click touchstart touchend'); }); });Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
February 3, 2017 at 3:12 am #1356473
RoboPhilParticipantThank you, that is great. Seems to have made a difference to them working when clicked.
Can I just confirm what exactly the JS is doing? Is this something that I should have included myself or have I installed something that is causing these not to work?
Thank you for your help.
Phil
February 3, 2017 at 1:21 pm #1357095
RadModeratorHi there,
Mobile touch events blocked the functions which are usually triggered by click. Since click and touch have the same functionality, we just need to turn off the bindings and re-add it again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1352640 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
