Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #999253
    dalatarzan
    Participant

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

    #999341
    Paul R
    Moderator

    Hi 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

    #999509
    dalatarzan
    Participant

    Thanks. 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!

    #999513
    dalatarzan
    Participant
    This reply has been marked as private.
    #1000235
    Rad
    Moderator

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

    #1001153
    dalatarzan
    Participant

    Hi. It works fine on desktop pc but not on mobile. On mobile they are not even clickable.

    Jonas

    #1001176
    Rue Nel
    Moderator

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

    #1006739
    dalatarzan
    Participant

    Sorry, but it still doesnt work on mobile devices.
    Any new ideas?

    Jonas

    #1006784
    Paul R
    Moderator

    Hi,

    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

    #1008488
    dalatarzan
    Participant

    Nope, 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

    #1008649
    Lely
    Moderator

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

    #1009622
    dalatarzan
    Participant

    You 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

    #1010130
    Rad
    Moderator

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

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