You need to replace "#your-id"
with an id target in your page which represents the position you want to scroll to.
For example:
1.Edit your page (e.g. /wp-admin/post.php?post=6703&action=edit
).
2.Place the cursor where you want your page to scroll automatically when it’s loaded. Click the “Insert Page scroll to id target”. Enter page-intro
in “id” field and click OK.
3.Save/update the post/page.
4.Edit your theme’s footer.php (e.g. in Appearance/Editor) and place the following in a new line right above </body>
:
<script>
(function($){
$(window).on("load",function(){
$.mPageScroll2id("scrollTo","#page-intro");
});
})(jQuery);
</script>
5.Save/update the file.
Test you page.
-
This reply was modified 6 years, 10 months ago by
malihu.