WordPress.org

Ready to get started?Download WordPress

Forums

Infinite-Scroll
[resolved] Navigation selector not moving to the bottom of the page after click (4 posts)

  1. plinth
    Member
    Posted 7 months ago #

    Hi, I've got the Infinite Scrolling plugin to work on my site using the default mode and all works as expected. However, when I set it to "manual trigger", the navigation selector stays in the middle of the page, between the old block of posts and the new one that appears beneath - surely it should move to the bottom of the page, so that it's in the right place to be clicked again when the reader gets to the bottom of the list?

    http://wordpress.org/plugins/infinite-scroll/

  2. jamo_dodger
    Member
    Posted 5 months ago #

    Hi Mate had similar problem here is solution.

    Your older post button currently lives inside your #content div and you have to move it outside of this.

    So upload a copy of your index.php to your child theme.

    Find the call for the posts navigation, I am using twenty twelve so it looks like this:

    <?php twentytwelve_content_nav( 'nav-below' ); ?>

    The posts navigation is the newer posts and older posts links that appears at the bottom of your blog page, so use your developer console to find what it is called.

    Step 1) take the nav-below or whatever it is in your index.php and enter it into you infinite scroll plugin settings. So navigation selector - #nav-below and next selector - #nav-below a

    Step 2) In your index.php take the above php call and move it to AFTER the closing #content div but before the closing #primary div.

    Hope this works for you

  3. plinth
    Member
    Posted 5 months ago #

    Sorted, thanks @jamo_dodger, needed to shuffle some of the divs around.

  4. radi_v
    Member
    Posted 4 months ago #

    WOW that was great! I spend so much time trying to fork the plugin to fix that issue and was not for a minute thinking that I could just fix my theme...

    Thank you very much plinth for asking this question and jamo_dodger for giving the answer for it!

    P.S. WOW that is so much simpler than I thought :D
    Thank you again!

Reply

You must log in to post.

About this Plugin

About this Topic