Tagged: x
-
AuthorPosts
-
May 20, 2016 at 2:49 pm #1002017
belayachimarouaneParticipantHello,
when I reload a page it comes back to the exact same position before reloading.
I want the page to comeback at the top of the page on every reload. Is it possible ?Thank you!
May 20, 2016 at 7:30 pm #1002280
JadeModeratorHi there,
Please add this code in
Appearance > Customize > Custom > JS:(function($){ $(this).scrollTop(0); })(jQuery);Hope this helps.
May 21, 2016 at 9:33 am #1002968
belayachimarouaneParticipantHello! Unfortunately it doesn’t work!
May 21, 2016 at 10:04 am #1002991
Rue NelModeratorHello There,
I am another staff checking this thread! Please update the code and use this instead:
(function($){ $(document).ready(function{ $('html, body').animate({ scrollTop: 0 }, 850, 'easeInOutExpo'); }); $(window).on('load', function(){ $('html, body').animate({ scrollTop: 0 }, 850, 'easeInOutExpo'); }); })(jQuery);Please let us know if this works out for you.
May 22, 2016 at 8:26 am #1003831
belayachimarouaneParticipantHello;
Still no success with it πMay 22, 2016 at 8:58 am #1003851
ThaiModeratorHi There,
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 / passwordDonβt forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
May 26, 2016 at 2:19 pm #1011608
belayachimarouaneParticipantThis reply has been marked as private.May 26, 2016 at 7:24 pm #1011985
Rue NelModeratorHello There,
Thanks for providing the login credentials. I went ahead and updated the JS code. I used this instead:
$(window).on('beforeunload', function() { $(window).scrollTop(0); });If you need anything else we can help you with, please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1002017 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
