Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #388873

    MOINLAB
    Participant

    Hi, everyone.
    I’m making my first demo-website using WordPress 4.3 with X-theme and Visual Composer.

    After I added Tour or Tabs in Content Bands and click sections, my page automatically scrolls down until the end of the content in that section and tried to hold it’s position on that place.

    I search for troubleshooting to fix this issue, but I couldn’t.. so, I’m asking help here.

    This is my web page link, which I am having trouble with:
    link here

    Wish I can get help from anyone, so I can complete my first website.

    Thank you and have a great day.

    Best.

    #388940

    Rupok
    Member

    Hi there,

    Thanks for writing in! You can add this under Custom > JavaScrip in the Customizer.

    jQuery(function($){
    
    $('.vc_tta-tabs-list a').on('click', function(){
    
      $('html, body').stop();
    });
    });

    Hope this helps.

    Cheers!

    #388971

    MOINLAB
    Participant

    Thanks for your reply!!!

    Hmm.. but my Sections/Tabs are still sliding down when I click, even I added your JavaScrip in my Customize>Custom>JavaScrip.

    Is there other way I can add this JavaScript?

    Thank you.

    Best.

    #389002

    Paul R
    Moderator

    Hi,

    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 / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #389021

    MOINLAB
    Participant
    This reply has been marked as private.
    #389034

    Christopher
    Moderator

    Hi there,

    Please try this code instead:

    jQuery( function($) {
    
    $(document).on('click', 'li.vc_tta-tab a', function( e ){
    $('html, body').stop();
    });
    
    });

    Hope it helps.

    #389043

    MOINLAB
    Participant

    Hi there.
    Sorry. It still shows the same problem.
    Scrolling down-side after clicking any Tabs, Sections, or Accordions.

    #389083

    Paul R
    Moderator

    Hi,

    I was able to fix it by changing the code to this.

    
    jQuery( function($) {
    
    $(document).on('click', 'li.vc_tta-tab a', function( e ){
    $('html, body').stop();
    });
    $(document).on('click', 'li', function( e ){
    $('html, body').stop();
    });
    $(document).on('click', '.vc_tta-panel-title', function( e ){
    $('html, body').stop();
    });
    });
    

    Kindly check on your end. Thanks

    #389091

    MOINLAB
    Participant

    Wow!! Wow!! It works!!!
    Thank you very much!!!
    Now I can focus moving on next steps!
    Thank you! 🙂

    #389136

    Zeshan
    Member

    You’re most welcome! 🙂