Create custom image block style variations.
wp.domReady( () => { | |
wp.blocks.registerBlockStyle( 'core/image', { | |
name: 'default', | |
label: __( 'Default' ), | |
isDefault: true, | |
} ); | |
wp.blocks.registerBlockStyle( 'core/image', { | |
name: 'circular-image', | |
label: __( 'Circular' ), | |
isDefault: false, | |
} ); | |
wp.blocks.registerBlockStyle( 'core/image', { | |
name: 'rounded-corners', | |
label: __( 'Rounded Corners' ), | |
isDefault: false, | |
} ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment