FSE: Fall back to Top level PHP theme templates when no FSE templates are available #24834
Labels
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Priority] High
Used to indicate top priority items that need quick attention
Currently template posts are used, falling back to block template files in the theme.
However, if neither exist, then no template is available. This also means that using full site editing requires a complete site rebuild.
In order to provide a fallback and migration path for non-block based themes, PHP templates should be added as a fallback for top level templates. This would mean files such as
home.php
,single.php
,archive.php
, etc would be loaded if no FSE equivalent is available. This does not apply to template partials however, e.g.get_template_part( 'foo', 'bar' );
would work the same as it always has in a PHP template, and no new functionality would be added to FSE block templates.This also means that sites can convert their themes one template at a time, or conduct partial migrations without rebuilding an entire site from scratch.
Related to #24803
The text was updated successfully, but these errors were encountered: