Tagged: x
-
AuthorPosts
-
April 19, 2016 at 7:46 am #889930
thesmartpointParticipantDear 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 navigationThe 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
April 19, 2016 at 10:56 am #890308
RupokMemberHi 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.
April 21, 2016 at 9:30 am #893718
thesmartpointParticipanthttp://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
April 21, 2016 at 11:40 am #893987
thesmartpointParticipantI 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.
April 21, 2016 at 11:50 pm #894756
RadModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-889930 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
