Block variation
-
I have created a new block variation for the WooCommerce checkout block, and while it functions correctly on the frontend checkout page, it fails to work in the Gutenberg editor after a page reload.import {registerBlockVariation} from '@wordpress/blocks'; registerBlockVariation( 'woocommerce/checkout', { name: 'themehigh-checkout-form-block', title: 'ThemeHigh Checkout Form Block', category: "themehigh-checkout-block", attributes: { align: 'wide', }, innerBlocks: [ [ 'core/paragraph', { placeholder: 'Enter content here...' } ], ], isDefault: true } );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Block variation’ is closed to new replies.