This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// register a new post title variation. | |
// In a production environment I would register a new attribute called "isLiPostTitle" and use that instead of checking the className. | |
window.wp.blocks.registerBlockVariation( | |
'core/post-title', | |
{ | |
name: 'core/post-title-li', | |
title: 'Post title (li)', | |
attributes: { | |
className: 'is-li-title' | |
}, |
OlderNewer