Allow disabling of the Divider Variants

[ad_1]

Hello Marco (@michelyweb),

I will consider adding this feature in the future. For now you can unregister these variations by using the following JS code:

wp.domReady( () => {
wp.blocks.unregisterBlockVariation( 'boldblocks/svg-block', 'divider-tilt' );
wp.blocks.unregisterBlockVariation( 'boldblocks/svg-block', 'divider-triangle' );
wp.blocks.unregisterBlockVariation( 'boldblocks/svg-block', 'divider-asymmetrical-triangle' );
wp.blocks.unregisterBlockVariation( 'boldblocks/svg-block', 'divider-waves' );
wp.blocks.unregisterBlockVariation( 'boldblocks/svg-block', 'divider-curve' );
wp.blocks.unregisterBlockVariation( 'boldblocks/svg-block', 'divider-curve-upside-down' );
wp.blocks.unregisterBlockVariation( 'boldblocks/svg-block', 'divider-arrow' );
});

Best, Phi.

Thread Starter
Marco

(@michelyweb)

Thank you @mr2p – this works for now.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer