Tagged: x
-
AuthorPosts
-
August 31, 2016 at 5:25 am #1154855
auldreekieParticipantI’m using tabs on my site. You provided some code to solve the tab scrolling problem on desktop:
jQuery( function($) { $(document).on('click', '.x-accordion-toggle, .x-nav-tabs .x-nav-tabs-item a', function( e ){ $('html, body').stop(); }); });But on mobile the tabs (which appear more like an accordion) scroll, and don’t slide open, so the content of each tab can’t be viewed.
Can you help?
August 31, 2016 at 6:41 am #1154956
ThaiModeratorHi There,
Please try with this code instead:
jQuery(function($) { $('.x-accordion-toggle, .x-nav-tabs .x-nav-tabs-item a').off('click touchend touchstart'); });Hope it helps π
August 31, 2016 at 7:14 am #1154993
auldreekieParticipantThis reply has been marked as private.August 31, 2016 at 7:42 am #1155032
ThaiModeratorHi There,
Please update the previous code a bit:
jQuery(function($) { $('.x-accordion-toggle, .x-nav-tabs .x-nav-tabs-item a, .vc_tta-tabs-list li a').off('click touchend touchstart'); });Hope it helps π
August 31, 2016 at 8:09 am #1155066
auldreekieParticipantUnfortunately this hasn’t helped either…
clicking the tabs on mobile keeps them closed, and just scrolls down the page a bit, almost to the next tab.
August 31, 2016 at 9:02 am #1155139
ThaiModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
β Link to your site
β WordPress Admin username / passwordDonβt forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
August 31, 2016 at 9:09 am #1155151
auldreekieParticipantThis reply has been marked as private.August 31, 2016 at 11:45 am #1155377
Nabeel AModeratorHi again,
Thank you for providing the credentials. Please replace the previous code with this one:
jQuery( function($) { $('.vc_tta-tab a').on('click', function( e ){ setTimeout( function() { $('html, body').stop(); }, 100 ); }); $(document).ready(function() { $('.vc_tta.vc_general .vc_tta-panel-title > a, .vc_tta.vc_general .vc_tta-panel-title > a, .vc_tta-tab a').off('click touchstart touchend'); }); });Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
September 1, 2016 at 8:09 am #1156794
auldreekieParticipantDesktop – no scrolling and opens fine
Mobile – opens fine. still scrolls, but I can live with that.Thanks for your help!
September 1, 2016 at 8:29 am #1156827
JoaoModeratorHi There,
Let us know if you need further help,
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1154855 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
