Infinite Scroll Block

説明

Adds an infinite scroll block to the full site editor that can be placed inside a Query Loop to replace classic pagination.

The blocks frontend script will detect when the user is 1200px (default value) from the infinite scroll block before fetching more posts so it is best to place it right after your theme template block. In addition to the Infinite Scroll Block, 2 optional blocks also are included:

  • Loading Posts Block: Container that will display its content while more posts are loading
  • No More Posts Block: Container that will display when there are no more posts to load in

Additional Notes

  • Adding more than one Post Template Block to a Query Block has undefined behavior.
  • Adding more than one Infinite Scroll Block to a Query Block has undefined behavior.

ブロック

このプラグインは3個のブロックを提供します。

  • No More Posts Contains the elements that are displayed when there are no more posts to fetch (optional block).
  • Loading Posts Contains the elements that are displayed while loading posts (optional block).
  • Infinite Scroll Implements inifnite scroll functionality. The number of posts loaded when triggered is equivalent to the Query Loops 'Items Per Page' setting.

評価

2022年12月14日 1 reply
Very good extension, works well in most cases, but I found an issue with list blocks. Some times, the list flows out of the post article. I have a blog page, with 2 columns and 4 items per page. When there is a list block in post number 5, the list flows out. It's ok if there is a list block in post number 4. I hope this will help you. Thanks
2022年11月21日
Love the simplicity of this plugin. Works perfectly within Site Editor themes. Nice work 🚀
3件のレビューをすべて表示

貢献者と開発者

Infinite Scroll Block はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Infinite Scroll Block” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.0.1

  • Fixed issue where a list element inside of a posts content would be stripped out and placed into the query block list

1.1.0

  • Fixed issue where sticky posts would we included in every single fetch request
  • Fixed infinite loop where sticky posts would continue to load even after all posts have been loaded
  • Removed throbber editor panel because it was not intuitive to use (kept styles for backwards compatibility)