Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Parent Group block alignment while editing Template Part #34010

Open
3 tasks done
richtabor opened this issue Aug 11, 2021 · 3 comments
Open
3 tasks done

Set Parent Group block alignment while editing Template Part #34010

richtabor opened this issue Aug 11, 2021 · 3 comments
Labels
[Block] Template Part Affects the Template Parts Block [Feature] Template Editing Mode Related to the template editor available in the Block Editor [Type] Enhancement A suggestion for improvement.

Comments

@richtabor
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Have you tried deactivating all plugins except Gutenberg?

  • I have tested with all plugins deactivated.

Have you tried replicating the bug using a default theme e.g. Twenty Twenty?

  • I have tested with a default theme.

Description

I should be able to modify a parent group block's alignment width setting (wide/full) when editing a template part in a template part's editor view within the Site Editor.

When applying a background color in the template part editor view, it seems the group block is 100%— but here's what we get instead:
Screen Shot 2021-08-11 at 8 44 28 AM

So I went to ensure it was set to alignfulll, but the template editor view would not allow it. However, I could go into the standard Site Editor view (editing the singular template for example) and I was able to properly set the width to alignfull.

Step-by-step reproduction instructions

  1. Go to a template part within the Site Editor
  2. Attempt to set wide/full width (not possible as the Group block's controls are missing)
  3. Go to a template part on a template, such as Singular
  4. Attempt to set wide/full width (possible).

Expected Behavior

I can set alignfull/alignwide while editing a specific template part.

Current Behavior

The align controls are missing (wide/full) when viewing a template part within its own edit view.

Screenshots or screen recording (optional)

Editing a template part within the Site Editor > Singular template (works):
Screen Shot 2021-08-11 at 8 40 36 AM

Editing a template part on its own view:
Screen Shot 2021-08-11 at 8 43 22 AM

Code snippet (optional)

No response

WordPress Information

5.8

Gutenberg Information

11.2.1

What browsers are you seeing the problem on?

No response

Device Information

No response

Operating System Information

No response

@richtabor richtabor added [Block] Template Part Affects the Template Parts Block [Feature] Template Editing Mode Related to the template editor available in the Block Editor labels Aug 11, 2021
@aristath aristath changed the title ISBAT use the group block alignment controls when editing a template part I should be able to use the group block alignment controls when editing a template part Sep 14, 2021
@DaisyOlsen
Copy link
Contributor

I've run into this issue and wondered if it was intentional or not. From a theme development standpoint the ability to set full and contained widths via the site editor feels pretty important.

@MadtownLems
Copy link

The inability to use Full-Width blocks in Template Parts is causing some headaches for us and our hybrid theme.

A simple use case is that we have a Template Part above the primary post listing. We absolutely want folks to be able to use full width blocks here, but it seems impossible.

@MadtownLems
Copy link

I'm attaching an example of what we're trying to do, which seems impossible due to #30079

2023-04-04 15_52_34-Hybrid Theme Test Site – University of Wisconsin – Madison

@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Sep 14, 2023
@jordesign jordesign changed the title I should be able to use the group block alignment controls when editing a template part Set Parent Group block alignment while editing Template Part Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Template Part Affects the Template Parts Block [Feature] Template Editing Mode Related to the template editor available in the Block Editor [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants