[wp-trac] [WordPress Trac] #64912: Issue with the "layout" node on blocks in theme.json

WordPress Trac noreply at wordpress.org
Fri Mar 20 12:25:52 UTC 2026


#64912: Issue with the "layout" node on blocks in theme.json
--------------------------+-----------------------------
 Reporter:  peroks        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  6.9.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 **Actual behaviour in WP 6.9.4, clean install**

 If you set the "layout" property on a **block** in theme.json without
 including the "wideSize" or "contentSize" child properties, the "align"
 control disappears from all its **child blocks**, i.e.

 {{{
 "settings": {
         "blocks": {
                 "core/group": {
                         "layout": {
                                 "allowCustomContentAndWideSize": false
                         }
                 }
         },
         ...
 }
 }}}

 This is also the case when "wideSize" and "contentSize" have been set
 correctly in the global "layout" settings:

 {{{
 "settings": {
         "layout": {
                 "contentSize": "50rem",
                 "wideSize": "75rem"
         },
         ...
 }
 }}}

 **Expected behaviour**

 When "wideSize" or "contentSize" are not included in the block layout
 node, I would expect the **global** "wideSize" or "contentSize" layout
 settings to apply.

 In order to remove "wideSize" or "contentSize" layout support for a block,
 I would expect this to be done explicitly, i.e. "wideSize": false

 Today I spent hours figuring out why the "align" control disappeared from
 all the child blocks in my custom block, where I had disabled
 "allowCustomContentAndWideSize"  (only).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64912>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list