2

When I'm editing the template for a Single Post using the Twenty Twenty Two theme, there's a layout option for the post content block that says it will inherit the default layout. Where is that default coming from? Is that a site-wide default or a theme default?

Here's a screenshot that shows what I'm talking about:

enter image description here

2 Answers 2

4

there's a layout option for the post content block that says it will inherit the default layout. Where is that default coming from?

In block themes, the default layout settings (contentSize and wideSize) can be found in the theme.json file in the root theme folder, e.g. at wp-content/themes/twentytwentytwo/theme.json in Twenty Twenty-Two. See source on GitHub for WordPress v5.9.3 & Twenty Twenty-Two v1.1

And if the layout option does not exist in the theme.json file, i.e. settings.layout is not defined, then the "Layout" panel (in the Block Settings sidebar) will not include the toggle labeled "Inherit default layout".

1

It's not specific to Twenty Twenty Two - the post content block layout option allows you to override the default width defined by the active theme.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.