Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1352640
    joshnurse
    Participant

    Hi 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.

    #1352642
    joshnurse
    Participant
    This reply has been marked as private.
    #1353247
    Rupok
    Member

    Hi there,

    Thanks for writing in! I have checked and it’s working fine on mobile.

    Cheers!

    #1355414
    RoboPhil
    Participant

    Hi,

    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

    #1355417
    RoboPhil
    Participant
    This reply has been marked as private.
    #1355700
    Nabeel A
    Moderator

    Hi 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!

    #1356473
    RoboPhil
    Participant

    Thank 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

    #1357095
    Rad
    Moderator

    Hi 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.

  • <script> jQuery(function($){ $("#no-reply-1352640 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>