Skip to content

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

Closed

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

Activity

  1. changed the title [-]Site Editor: The static homepage with the Front Page template that includes only patterns display nothing[/-] [+]Site Editor: The static homepage with the Front Page template that doesn't have the post content displays nothing[/+] on Aug 2, 2023
  2. Mamaduka commented on Aug 2, 2023

    @Mamaduka
    Member

    I think this was fixed in #53169. The fix will ship with Gutenberg 16.4.

  3. added
    [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")
    on Aug 2, 2023
  4. annezazu commented on Aug 2, 2023

    @annezazu
    Contributor

    This seems to match what was reported here by @wpsoul #52388 (comment)

  5. tellthemachines commented on Aug 3, 2023

    @tellthemachines
    Contributor

    Install and activate the Kigen theme

    @arthur791004 that theme doesn't seem to be available in the WP theme directory. Could you share it as a zipped folder or, alternatively, point to a publicly accessible theme where the issue can be reproduced? You could also create a dummy theme with just the minimal code required to reproduce.

  6. arthur791004 commented on Aug 3, 2023

    @arthur791004
    ContributorAuthor
  7. arthur791004 commented on Aug 3, 2023

    @arthur791004
    ContributorAuthor

    I think this was fixed in #53169. The fix will ship with Gutenberg 16.4.

    I guess it's slightly different since I tested it using the latest trunk yesterday and the issue is still there 🤔

  8. tellthemachines commented on Aug 3, 2023

    @tellthemachines
    Contributor

    Thanks!

    I can't reproduce the issue on the latest Gutenberg trunk or on WP 6.3 RC3 with the Kigen theme:

    Screenshot 2023-08-03 at 4 26 35 pm

    Could you try testing also on WP 6.3 RC without Gutenberg enabled?

  9. arthur791004 commented on Aug 3, 2023

    @arthur791004
    ContributorAuthor

    I tried again and it works now.

    • With Gutenberg 16.3.0, the site editor displays nothing
    • With Gutenberg built from the latest trunk, the site editor displays it correctly!

    So, I expect this issue would be resolved with Gutenberg 16.4.0 🎉

  10. tellthemachines commented on Aug 3, 2023

    @tellthemachines
    Contributor

    Thanks for checking! Closing as fixed by #53169.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions