wp.domReady(function () {
wp.blocks.registerBlockStyle('core/button', {
name: 'with-arrow',
label: 'With Arrow',
});
wp.blocks.registerBlockStyle('core/button', {
name: 'link-btn',
label: 'Link Btn',
});
wp.blocks.registerBlockStyle('core/list', {
name: 'check',
label: 'check mark',
});
});
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter