8000 Full Site Editing (FSE) support (frontend) · Issue #228 · roots/acorn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Full Site Editing (FSE) support (frontend) #228
Closed
@strarsis

Description

@strarsis

Description

Full Site Editing (FSE) with Sage 10 theme loads a blade template in frontend, no Website editor blocks are shown.

Steps to reproduce

  1. Ensure a Sage 10 theme is present and enabled.
  2. Enable Full Site Editing (FSE) support in the Sage 10 theme.
  3. Add some modifications to the Website editor.
  4. Add/edit a page (front page).
  5. 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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0