Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Yes, this is possible, however it depends on the theme you are using.

    Here’s a rough example of implementing amp-next-page for blog index page in Twenty Twenty: https://gist.github.com/westonruter/c70e297f523ba18770efd991887966ad

    Note that amp-next-page is still an experimental feature and leaves much to be desired.

    Work is underway to add true infinite scroll to AMP: https://github.com/ampproject/amphtml/issues/25500

    Thread Starter Akki

    (@luckyankit)

    Not using Twenty-twenty at present. And I checked my themes, none of them as pagination.php file. Although I am testing Newspack theme these days and wondering if this can be implemented for it. I want to migrate my blogs to using Newspack theme with full-AMP.

    Plugin Author Weston Ruter

    (@westonruter)

    I only provided the Twenty Twenty code as an example. It was intended to be adapted for your theme. It is only rough code.

    The Newspack team should be including infinite scroll as part of the theme, so if you are using that theme, perhaps you should just wait for that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Infinite Scroll Feature in AMP’ is closed to new replies.