Okay
  Public Ticket #1745168
menu scroll bar issue
Closed

Comments

  • Ash started the conversation

    Hi there,

    we remove a section from the homepage and now when i click the second menu button it doesn't scroll properly to the second section. when it gets to second section, it does not show the menu bar by itself, I have to manually scroll down.

    please check attachments

    Thanks

  •  1,973
    Support replied

    Hi there,

    find and open /js/scripts.js and find thi bit (change to what is bolded)

    //Navigation Scrolling
    jQuery(function() {
    jQuery('.nav a, .nav li a, #home-center a, a.move').bind('click',function(event){
    var $anchor = jQuery(this);

    if( jQuery('.slide-menu').length > 0 ){
    jQuery('html, body').stop().animate({
    scrollTop: jQuery($anchor.attr('href')).offset().top 
    }, 1500,'easeInOutExpo');
    } else {
    jQuery('html, body').stop().animate({
    scrollTop: jQuery($anchor.attr('href')).offset().top
    }, 1500,'easeInOutExpo');
    }

    event.preventDefault();
    });
    });

    the old version of the changed line causing the problem:

    scrollTop: jQuery($anchor.attr('href')).offset().top-44

    Hard refresh the page (Ctrl+F5)

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy