Alignment on pattern “wp_block”
-
Hello
I want to use wordpress patterns. However, I don’t have the alignwide and alignfull options on blocks (including native blocks like the gallery).Our WordPress themes work with theme.json, so the add_theme_support( ‘align-wide’ ) function is not interpreted.
And if I delete the theme.json and implement this function, the alignfull and alignwide options are available again.
Also, when testing with the Twenty Twenty-Four theme, the options are available. FSE themes don’t seem to have this problem.In fact, the custom post type ‘wp_block’ is considered like a DESIGN_POST_TYPES. Cf comment: https://github.com/WordPress/WordPress/blob/6.5.5/wp-includes/js/dist/editor.js#L15463
To have the alignwide and alignfull alignment options, the layout must be of type ‘constrained’ or it is of type ‘default’.
Is there any way around this problem?
Thank you
- The topic ‘Alignment on pattern “wp_block”’ is closed to new replies.