if ( function_exists( 'register_block_pattern'
) ) { /**
* Register Block Pattern.
*
* @since Twenty Twenty-One 1.0
*
* @return void
*/
function twenty_twenty_one_register_block_pattern() { // Large Text.
register_block_pattern( 'twentytwentyone/large-text',
array
( 'title' =>
esc_html__( 'Large text', 'twentytwentyone'
),
'categories' => array
( 'twentytwentyone'
),
'viewportWidth' => 1440,
'blockTypes' => array
( 'core/heading'
),
'content' => '<!-- wp:heading {"align":"wide","fontSize":"gigantic","style":{"typography":{"lineHeight":"1.1"}}} --><h2 class="alignwide has-text-align-wide has-gigantic-font-size" style="line-height:1.1">' .
esc_html__( 'A new portfolio default theme for WordPress', 'twentytwentyone'
) . '</h2><!-- /wp:heading -->',
) );
// Links Area.