This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Legacy Template block is always rendered full width #5092
Labels
focus: FSE
Work related to prepare WooCommerce for FSE.
type: bug
The issue/PR concerns a confirmed bug.
The templates we have been creating as part of the Store Editing Templates v1 project render the Legacy Template block directly into the content, that causes it to take all the available wide space.
I took a look at how that's done in other templates, and they seem to use a Group block with the attribute
{"layout":{"inherit":true}}
, that way it gets the correct width from the theme.Some themes also add custom class names to that Group block, but given that this depends on the theme, that's not something we can implement on our end.
This issue is about updating the templates under
/templates/block-templates/
and replace:<!-- wp:woocommerce/legacy-template {"template":"single-product"} /-->
with:
The text was updated successfully, but these errors were encountered: