Tagged: x
-
AuthorPosts
-
October 17, 2016 at 11:34 am #1219552
clearsparkParticipantHi there,
I’ve added tabs to a visual composer page and when a user clicks on each tab, the page automatically scrolls down to the bottom of the page.Also when you try to scroll up using the page scroll bar, the behaviour is very jumpy.
I’ve tried inserting the java snippets outlined in this solution here (https://community.theme.co/forums/topic/page-scrolls-up-and-down-when-clicking-on-tab-nav-items-and-accordian-items/), but the problem persists.
You can view the issue on this page here: http://www.certipages.com/labelrydev/faq/
Thankyou.
October 17, 2016 at 12:10 pm #1219599
ThaiModeratorHi There,
Please add the following code under Customizer > Custom > Global Javascript:
jQuery(function($) { $('.vc_tta-tabs-list li>a').off('click touchend touchstart'); });Hope it helps π
October 17, 2016 at 12:45 pm #1219642
clearsparkParticipantHi, thanks for the quick response. Just added the code, but no change to the behaviour.
Andy.
October 17, 2016 at 12:49 pm #1219645
ThaiModeratorHi There,
In this case, 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 login to your site
β WordPress Admin username / PasswordDonβt forget to select Set as a private reply. This ensures your information is only visible to our staff.
Thanks.
October 17, 2016 at 12:56 pm #1219650
clearsparkParticipantThis reply has been marked as private.October 17, 2016 at 1:43 pm #1219717
RupokMemberHi there,
Let’s try this JS :
jQuery(document).ready(function($) { $('.vc_tta-tab a').click(function(e) { $('html, body').stop(); }); });Let us know if that works for you.
October 17, 2016 at 3:31 pm #1219838
clearsparkParticipantUnfortunately no change. You can see for yourself at the test URL: http://www.certipages.com/labelrydev/faq/
Any other methods?
October 17, 2016 at 10:41 pm #1220269
LelyModeratorHi There,
I have updated the code to this:
jQuery( function($) { $('.vc_tta-tab a').on('click', function( e ){ setTimeout( function() { $('html, body').stop().stop(); console.log('scrolling stopped'); }, 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'); }); });The issue is now fixed. See this:http://screencast-o-matic.com/watch/cD6Fekjg6r
Cheers!
October 19, 2016 at 4:18 am #1222025
clearsparkParticipantPerfect, thankyou.
October 19, 2016 at 6:52 am #1222134
Paul RModeratorYou’re welcome! π
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1219552 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
