WordPress.org

Ready to get started?Download WordPress

Forums

Make a NextPage link not Jump to top (4 posts)

  1. Davebenroberts
    Member
    Posted 4 years ago #

    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?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

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

  3. Davebenroberts
    Member
    Posted 4 years ago #

    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.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic