+91-9560121007

+1-929-243-5550

Twenty Twenty-One: A Deep Dive into the New Default WordPress Theme

‘content’ => ‘ ‘,

‘categories’ => array( ‘custom-patterns’ ),

The code above registers the Custom patterns category and the Author Bio pattern.

Note the code we used to build the img element:

The get_stylesheet_directory_uri() function provides the URI of the child theme’s directory (the image was previously added to the child theme’s assets folder).

Save your changes and create a new post or page.

Now you should find the new pattern in the block inserter.

If you want to create a new template file for a specific archive, or single post/page, you’ll need to create a new .php template according to the WordPress Template Hierarchy.