Skip to content

Site Editor doesn't show all template parts #24733

Closed

Description

@atachibana

Describe the bug
I followed the tutorial Creating a block-based theme (ref. #23698) and prepared block-templates/index.html that includes following lines:

<!-- wp:template-part {"slug":"header","theme":"myfirsttheme"} /-->

<!-- wp:template-part {"slug":"footer","theme":"myfirsttheme"} /-->

But, Site Editor's template menu doesn't display footer. though header is displayed.

image

In the tutorial page, both template part are displayed under the index.

To reproduce
Steps to reproduce the behavior:

  1. Follow Tutorial "Creating a block-based theme"
    https://developer.wordpress.org/block-editor/tutorials/block-based-themes/
  2. Activate this theme from Appearance - Theme
  3. Turn off Demo Template of FSE from Gutenberg - Experimental menu
  4. Open Site Editor, and click Template menu in Toolbar.

Expected behavior
footer template parts also should be displayed.

Editor version (please complete the following information):

  • WordPress version: 5.5
  • Gutenberg 8.8

Desktop (please complete the following information):

  • OS: macOS 10.14.6 (Mojave)
  • Browser Chrome
  • Version 84.0.4147.135

Activity

  1. aristath commented on Aug 25, 2020

    @aristath
    Member

    Just a note, could be relevant or not. I had the same issue earlier today, the WIP PR in #24720 however fixed it for me. So I suppose there's a chance this could be related to the current meta query we're using... (or it could just be random that it got fixed on my end with that PR)

  2. atachibana commented on Aug 26, 2020

    @atachibana
    ContributorAuthor

    @aristath

    Thank you the comment.
    I'll retest this issue after merging of your fix.

  3. annezazu commented on Dec 29, 2020

    @annezazu
    Contributor

    @atachibana I am going to close this out since the PR mentioned about has been merged and we haven't heard back from you. Feel free to reopen if needed upon retesting!

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

    Needs TestingNeeds further testing to be confirmed.[Status] Needs More InfoFollow-up required in order to be actionable.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions