Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #889930
    thesmartpoint
    Participant

    Dear Support,

    on a website I made with X I have the following situation:
    – I use the Stack Integrity
    – I use One page lazout
    – I use top navigation

    The first time a user clicks on one navigation item the page scroll down to much (exactly the height of the navigation bar). The second time they click on the same navigation item, the position of the scrolling is correct.

    How can I fix this?

    thank you!

    Giorgio

    #890308
    Rupok
    Member

    Hi Giorgio,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #893718
    thesmartpoint
    Participant

    http://demo.thesmartpoint.com/andreamanzitti.com/

    This is a TEST environment. The first time you access this URL you will be redirected to a login page where you have to enter the PIN code manzitti in order to white list your IP.

    Thank you in advance for your support!

    Giorgio

    #893987
    thesmartpoint
    Participant

    I found the following work-around:

    jQuery(document ).ready(function(){
    jQuery(document).scrollTop( jQuery(“#mostra”).offset().top );
    jQuery(document).scrollTop( jQuery(“#top”).offset().top );
    });

    I basically on load of the document scroll down and up one time (it’s that fast that the human eye cannot even notice).

    I commented out this solution so that you can see the problem and give me a cleaner solution.

    #894756
    Rad
    Moderator

    Hi there,

    Hmm, seems a bit confusing to me. You said that when first clicked, it scroll too much. But on the second click, it’s scroll to correct position. I did this, but there is no first and second click, it’s just one click and even if you click it over and over, it will stay in that position of the first click.

    The workaround you have is for document.ready() is for document load event and not click event. And I’m not sure what’s the relation of this code to the click issue.

    Would you mind providing a screen recording on how we could see the issue? Or are you referring to the wrong scroll position on page load, but when clicked it scrolls to the correct position?

    Thanks!

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