Skip to content

Title block in Post Content results in loss of style controls in Site Editor #51549

Closed

Description

@ndiego

Description

I ran into this when experimenting with TT3 and the Blank template. This is a common template for when you want to design a really custom layout that is unique to the individual page. In these scenarios, it is common to include the page's title as part of the content.

With the new content edting functionality in the Site Editor, however, it seems to think that the Title block is part of the template instead of being part of the page's content. In addition to this bug, the Title block loses all styling control as well as the Advanced panel. See the video below.

Step-by-step reproduction instructions

  1. Using TT3, create a new page with a Blank template
  2. Add a Title block to the page along with some addition text
  3. Navigate to that page in the Site Editor
  4. Notice that the Title block is getting "picked up" as being part of the template, rather than part of the page's content
  5. Confirm that the styling options are not available to the Title block.

Screenshots, screen recording, code snippet

blank-template-page-title.mp4

Environment info

  • Gutenberg 16.0
  • WordPress 6.2.2

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. added
    [Type] Bug
    [Block] Post Title
    [Feature] Site Editor
    on Jun 15, 2023
  2. mov8cam commented on Jun 16, 2023

    @mov8cam

    I'm experiencing a similar issue with a template part. It's a query block to show the latest 3 posts, I now no longer get any styling controls on the title blocks. Can't change font size, etc. Tried deleting the block and adding it again, and same result - no styling.

    In the list view, there is also no three dot menu on it, so you can't delete it either.

    This only happens in template parts though. If I add a title block in a page it works as normal.

    Screenshot 2023-06-16 103522
  3. added
    [Feature] Page Content Focus
    on Jul 12, 2023
  4. noisysocks commented on Jul 12, 2023

    @noisysocks
    Member

    Thanks for the report! #52351 fixed this.

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

    [Block] Post Title[Feature] Page Content Focus[Feature] Site Editor[Type] Bug

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions