pixelgrade / anima

Anima is the universal FSE WordPress theme of Pixelgrade.
GNU General Public License v2.0
6 stars 1 forks source link

Button Alignment Issue in WordPress 6.4 #340

Closed georgeolaru closed 10 months ago

georgeolaru commented 10 months ago

Description

After updating to WordPress 6.4, the Button block in our theme is not applying alignment CSS classes correctly. This issue seems to stem from the removal of certain render_block filters, specifically wp_render_layout_support_flag, which are essential for proper block layout and styling in WordPress.

Expected Behavior

Button blocks should correctly apply alignment classes like wp-block-buttons-is-layout-flex.

Steps to Reproduce

Proposed Solution

We need to investigate the impact of the wp_render_layout_support_flag removal and explore solutions. This might include re-enabling this filter or implementing a custom solution for handling the Button block's layout and styles.