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

Site Editor: detect themes that support FSE #26503

Closed
vindl opened this issue Oct 27, 2020 · 1 comment · Fixed by #26500
Closed

Site Editor: detect themes that support FSE #26503

vindl opened this issue Oct 27, 2020 · 1 comment · Fixed by #26500
Assignees
Labels
[Status] In Progress Tracking issues with work in progress

Comments

@vindl
Copy link
Member

vindl commented Oct 27, 2020

We need a way to detect whether currently active theme supports FSE. Based on this we can determine whether we want to show Site Editor menu item and probably other things that will depend on this down the road.

One way to do this would be to check for the presence of block-templates folders, and index.html template file, since I think this is a bare minimum needed to run the site editor.

In addition to this, themes could declare FSE support via tags.

@fklein-lu
Copy link
Contributor

This is covered by #26500, see https://github.com/WordPress/gutenberg/pull/26500/files#diff-712eed50059e933caa20b56aa2ff8764eb05a7c19ae6f000aff72f4e44655d03R13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants