Skip to content

Site Editor: The static homepage with the Front Page template that doesn't have the post content displays nothing #53264

@arthur791004

Description

@arthur791004

Description

Referring to Automattic/wp-calypso#79224, the site editor might display nothing when

  1. The “Your homepage displays” setting is configured to a static page
  2. The theme has a front-page.html or the user created a front-page template
  3. The front-page template contains only patterns

The reason is the registered patterns/blocks are filtered out via the canInsertBlockType function because the block editing mode is disabled, and it's disabled due to useDisableNonPageContentBlocks

Step-by-step reproduction instructions

  1. Install and activate the themes below
  1. Go to Settings > Reading, and configure “Your homepage displays” to a static page
  2. Go to Appearance > Editor
  3. Ensure the preview displays nothing

Screenshots, screen recording, code snippet

image

Environment info

The latest trunk on 2 Aug

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions