WordPress.org

Support

Support » How-To and Troubleshooting » Make a NextPage link not Jump to top

Make a NextPage link not Jump to top

  • I’m using <!–NextPage–> in my posts. How can I make it that when they click on page 2 of a post, it stays at the position their browser was at when they clicked, instead of jumping back up to the top of the page??????? is there a snippet of code i need place there?

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    @esmi

    Forum Moderator

    Why would people want to be taken to to the bottom of the second page?

    I wish I could show it to you, but its all locally hosted for now. What i need is a code that leaves the browser at the pointed that it was previously scrolled to. Not jumping to any part of the next page. I just want it to be the same as the page before. Say for example i click on a link thats towards the bottom of the page. When i click that link the content that was around that link changes, so I want the page to be scrolled to that same position, so it looks like a seemless transition. I’m using the <!–nextpage–> function in wordpress.

    esmi

    @esmi

    Forum Moderator

    You can’t get <--nextpage--> to behave like that. It does what it says on the box – takes the user to the next page and, by common rules, that means to the top of the next page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make a NextPage link not Jump to top’ is closed to new replies.
Skip to toolbar