Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite Scroll: adapt to work with block themes #21787

Open
jeherve opened this issue Nov 17, 2021 · 10 comments
Open

Infinite Scroll: adapt to work with block themes #21787

jeherve opened this issue Nov 17, 2021 · 10 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report" [Feature] Infinite Scroll [Focus] FSE Issues related to the site editor / Full Site Editing / FSE feature in Gutenberg [Pri] Low [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it

Comments

@jeherve
Copy link
Member

jeherve commented Nov 17, 2021

Block themes do not use PHP templates that Infinite Scroll can use to render a list / loop of posts.

We would consequently need to either:

@jeherve jeherve added [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Infinite Scroll [Pri] Low labels Nov 17, 2021
@devNigel
Copy link

Recently had an interaction about this: 4778564-zen

Another related bug report for Seedlet Block theme: Automattic/themes#5407

@matticbot matticbot added the Customer Report Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report" label Feb 17, 2022
@jeyip
Copy link
Contributor

jeyip commented Mar 2, 2022

Created a PR that disables the feature for themes without the infinite-scroll theme tag

Automattic/wp-calypso#61624

@sarahcada
Copy link

A customer asked about this, for Geologist at 4837913-zd-woothemes
They tried using the code snippet from Jetpack support. I've explained that this isn't supported for that theme; I recommended Twenty Twenty One for now.

@csabarakasz
Copy link

35002101-hc block theme, Stewart. The user wanted to use infinite scrolling.

@ha-un
Copy link

ha-un commented Aug 8, 2022

User with Stewart theme wanted to use infinite scrolling. (36388469-hc)

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2022

Support References

This comment is automatically generated. Please do not edit it.

  • 4778564-zen
  • 4837913-zen

@chvillanuevap
Copy link

Any updates on this? Would doing a hybrid PHP template with do_blocks help? For example:

add_theme_support(
	'infinite-scroll',
	[
		'container' => 'main-content',
		'render'    => 'custom_do_loop',
		'footer'    => false,
	]
);

where custom_do_loop uses echo do_blocks('<!-- wp:query...')?

@simison
Copy link
Member

simison commented May 10, 2023

For future reference:

  • Future Block Behavior APIs (things like modals) are interesting if there's going to be infinite scrolling behavior that can just be "attached" to blocks like Query loop.
  • Block behaviors are based on “Interactivity API”, announced in March 2023
  • Since May 5th 2023 (Gutenberg v15.8), we have the Interactivity API in Gutenberg: WordPress/gutenberg@9105718, which can be used to build infinite scroll type features in the frontend with core APIs.

@windhamdavid
Copy link

user with twenty twenty-three theme requested it.

@RavanH
Copy link
Contributor

RavanH commented Jan 19, 2025

Ran into https://wordpress.org/plugins/infinite-scroll-block/ which may offer an interesting approach...

@jeherve jeherve added the [Focus] FSE Issues related to the site editor / Full Site Editing / FSE feature in Gutenberg label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report" [Feature] Infinite Scroll [Focus] FSE Issues related to the site editor / Full Site Editing / FSE feature in Gutenberg [Pri] Low [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

No branches or pull requests