Title: scroll_distance doesn&#8217;t works
Last modified: April 7, 2017

---

# scroll_distance doesn’t works

 *  Resolved [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/)
 * I tried to use the scroll_distance parameter, but it seem it doesn’t affects 
   the loading behavior.
    It tried scroll_distance=”800″, scroll_distance=”1000″,
   no effects at all. Do you know why?
 * Also the transition_speed seem doesn’t works as well.

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/#post-9007542)
 * Hi [@wp_dummy](https://wordpress.org/support/users/wp_dummy/),
    No, not sure.
   Those scroll distance are high though. That means the button needs to get 1000
   pixels from the btm of the screen. Usually that never happens.
 * Try scroll_distance=”0″
 * Can you share a link?
 *  Thread Starter [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/#post-9010209)
 * I now set it to scroll_distance=”0″. But still not effect.
    The url is [here](https://tinyurl.com/m39dd3g).
 * The reason I set the distance so high is that I want the previous loaded way 
   before user scroll down, so that user won’t have to wait. As soon as he scroll
   down the page, he can view the previous post. (I am showing the whole post content,
   one post by a time)
 * Ideally it can load along with current post. It is what I want to do actually.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/#post-9012214)
 * I don’t see the `alm-btn-wrap` div on your page.
 * Did you remove it? If so, it’s required for the scroll distance.
    -  This reply was modified 9 years, 1 month ago by [Darren Cooney](https://wordpress.org/support/users/dcooney/).
 *  Thread Starter [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/#post-9013277)
 * Where do I put this `alm-btn-wrap`?
    In `single.php` or repeater template?
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/#post-9014185)
 * It’s part of the markup the shortcode outputs. How are adding the shortcode?
 *  Thread Starter [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/#post-9015847)
 * I do find the alm-btn-wrap in the div. It is to wrap the load more button (Older
   Posts) right?
 * Anyway, this is the shortcodes that I used
 * `[ajax_load_more container_type="div" scroll_distance=”0" previous_post="true"
   previous_post_id="'.get_the_ID().'" post_type="post" posts_per_page="1"]`
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/#post-9015890)
 * Yes, exactly. its not a manual process for you. it gets wrapped automatically.
 *  Thread Starter [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/#post-9016021)
 * So, I did nothing wrong then?? If so, why i doesn’t work?
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/#post-9016177)
 * No idea.
    If you want me to take a look open a ticket on the website and we can
   chat privately.
 *  Thread Starter [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/#post-9017600)
 * Nvm, I put aside this first. I got other thing more urgent to do now. But if 
   I have problem again..I will open the ticket on the website then.
 * Any thanks.
    Great Support!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘scroll_distance doesn’t works’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/scroll_distance-doesnt-works/#post-9017600)
 * Status: resolved