• Resolved namteor

    (@namteor)


    Hi there,

    I want my page to load more posts before it actually hits the bottom of the page, I read that this was possible with ‘scroll-distance’ but this is not working for me. Maybe I’m doing something wrong.

    You can take a look here: https://flauwekul-online.nl/media

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @namteor,
    Could be a few things.
    You have float: left; on your elements. So the float could mean it’s not clearing before the button.
    Also, scroll distance -800 is quite high.

    I suggest fixing the float on your div#content-wrapper div.post-content divand setting scroll_distance="-100".

    Thread Starter namteor

    (@namteor)

    Hi thanks for the quick response!

    What’s the best way to clear the float? Or maybe it’s better to just not make them float?

    Plugin Author Darren Cooney

    (@dcooney)

    It doesnt appear they need to be floated.

    or .alm-reveal{overflow: hidden;}

    Thread Starter namteor

    (@namteor)

    Okay I’ll try some of that. Thanks! Hopefully I won’t have to come back haha. Have a nice evening!

    Thread Starter namteor

    (@namteor)

    Unfortunately it’s not working. I removed the float line in the css and added the overflow hidden. Just to clear things up, I want the page to start loading new posts before the ‘load more’ button actually shows up in the screen while scrolling. Is there anything else I’m doing wrong?

    Thread Starter namteor

    (@namteor)

    It also started acting really weird when you scroll it really glitches.

    Plugin Author Darren Cooney

    (@dcooney)

    The issue is the CSS on the div#content-wrapper element. If you remove the height and the scrolling on this element it works.

    CHeers,

    Thread Starter namteor

    (@namteor)

    I think it works now! Thanks a lot!

    Plugin Author Darren Cooney

    (@dcooney)

    Excellent. Thanks for following up.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Scroll distance not working’ is closed to new replies.