Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created August 30, 2019 16:57
Show Gist options
  • Save billerickson/c98036ae7623e08893707d6d5d5f7f4a to your computer and use it in GitHub Desktop.
Save billerickson/c98036ae7623e08893707d6d5d5f7f4a to your computer and use it in GitHub Desktop.
wp.domReady( () => {
wp.blocks.unregisterBlockStyle( 'core/button', 'default' );
wp.blocks.unregisterBlockStyle( 'core/button', 'outline' );
wp.blocks.unregisterBlockStyle( 'core/button', 'squared' );
wp.blocks.unregisterBlockStyle( 'core/separator', 'default' );
wp.blocks.unregisterBlockStyle( 'core/separator', 'wide' );
wp.blocks.unregisterBlockStyle( 'core/separator', 'dots' );
wp.blocks.unregisterBlockStyle( 'core/quote', 'default' );
wp.blocks.unregisterBlockStyle( 'core/quote', 'large' );
wp.blocks.registerBlockStyle( 'core/button', {
name: 'default',
label: 'Default',
isDefault: true,
});
wp.blocks.registerBlockStyle( 'core/button', {
name: 'full',
label: 'Full Width',
});
wp.blocks.registerBlockStyle( 'core/heading', {
name: 'default',
label: 'Default',
isDefault: true,
});
wp.blocks.registerBlockStyle( 'core/heading', {
name: 'underline',
label: 'Underline',
});
wp.blocks.registerBlockStyle( 'core/heading', {
name: 'fancy',
label: 'Fancy',
});
wp.blocks.registerBlockStyle( 'core/separator', {
name: 'line',
label: 'Line',
isDefault: true,
});
wp.blocks.registerBlockStyle( 'core/separator', {
name: 'block',
label: 'Block',
});
wp.blocks.registerBlockStyle( 'core/separator', {
name: 'dots',
label: 'Dots',
});
wp.blocks.registerBlockStyle( 'core/quote', {
name: 'default',
label: 'Default',
isDefault: true,
});
wp.blocks.registerBlockStyle( 'core/quote', {
name: 'line',
label: 'Line',
});
wp.blocks.registerBlockStyle( 'core/list', {
name: 'default',
label: 'Default',
isDefault: true,
});
wp.blocks.registerBlockStyle( 'core/list', {
name: 'arrow',
label: 'Arrow List',
});
wp.blocks.registerBlockStyle( 'core/list', {
name: 'icon',
label: 'Icon List',
});
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment