• Resolved TC.K

    (@wp_dummy)


    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

    (@dcooney)

    Hi @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

    (@wp_dummy)

    I now set it to scroll_distance=”0″. But still not effect.
    The url is here.

    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

    (@dcooney)

    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 7 years, 10 months ago by Darren Cooney.
    Thread Starter TC.K

    (@wp_dummy)

    Where do I put this alm-btn-wrap?
    In single.php or repeater template?

    Plugin Author Darren Cooney

    (@dcooney)

    It’s part of the markup the shortcode outputs. How are adding the shortcode?

    Thread Starter TC.K

    (@wp_dummy)

    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

    (@dcooney)

    Yes, exactly. its not a manual process for you. it gets wrapped automatically.

    Thread Starter TC.K

    (@wp_dummy)

    So, I did nothing wrong then?? If so, why i doesn’t work?

    Plugin Author Darren Cooney

    (@dcooney)

    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

    (@wp_dummy)

    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.