Closed
Description
- I've read the guidelines for Contributing to Roots Projects
- This request isn't a duplicate of an existing issue
- I've read the docs and followed them (if applicable)
- This is not a personal support request that should be posted on the Roots Discourse community
Description
Full Site Editing (FSE) with Sage 10 theme loads a blade template in frontend, no Website editor blocks are shown.
Steps to reproduce
- Ensure a Sage 10 theme is present and enabled.
- Enable Full Site Editing (FSE) support in the Sage 10 theme.
- Add some modifications to the Website editor.
- Add/edit a page (front page).
- Open the front page on frontend.
Note that the site blocks from the Website editor are not loaded, instead the default blade-based template.
Expected behavior:
Frontend shows the blocks from website editor.
Actual behavior:
Frontend doesn't show the blocks from website editor, but the default blade template instead.
Reproduces how often:
Always.
Versions
1.16.1: 2021-07-30
Additional information
Latest Gutenberg plugin 11.7.1
.
The previous code for adding compatibility for Full Site Editing (FSE) doesn't work (anymore):
// Sage 10 + Gutengberg Full Site Editing (FSE) template compatibility
// @see https://discourse.roots.io/t/sage-10-block-based-theme-support/17294/2?u=strarsis
add_filter('template_include', function ($template_file) {
global $_wp_current_template_hierarchy;
$_wp_current_template_hierarchy = array_map('basename', $_wp_current_template_hierarchy);
return $template_file;
}, 19);