{"id":74067,"date":"2022-12-23T07:02:08","date_gmt":"2022-12-23T07:02:08","guid":{"rendered":"\/tutorials\/?p=74067"},"modified":"2025-04-23T09:38:24","modified_gmt":"2025-04-23T09:38:24","slug":"wordpress-block-patterns","status":"publish","type":"post","link":"\/tutorials\/wordpress-block-patterns","title":{"rendered":"Understanding WordPress block patterns: what they are and how to use them"},"content":{"rendered":"<p>First introduced in WordPress 5.5, block patterns have opened the way for the Gutenberg editor to be a full-scale page builder. They help users build complex WordPress websites with minimal time, effort, and technical expertise.<\/p><p>In this article, we&rsquo;ll show you how WordPress block patterns work and two different types of patterns. You&rsquo;ll also learn how to use patterns in the WordPress block editor to build a website from scratch easier.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all-in-one WordPress cheat sheet<\/a><\/p><p>\n\n\n\n\n\n<div class=\"protip\">\n                    <h2 class=\"featured-snippet title\">What Are WordPress Block Patterns?<\/h2>\n                    <p> WordPress Block Patterns are predefined block layouts made up of <a href=\"\/tutorials\/wordpress-blocks\" target=\"&rdquo;_blank&rdquo;\" rel=\"noopener\">WordPress blocks.<\/a> WordPress users can easily insert them into a post or a page to create a more complex content structure with just a few clicks. <\/p>\n                <\/div>\n\n\n\n<\/p><p>An example is a call to action (CTA) block pattern from the<strong> Twenty Twenty<\/strong> theme. It contains the Heading, Paragraph, and Buttons blocks you can customize, from the background color to text size and alignment.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/A-CTA-block-pattern-example-from-the-Twenty-Twenty-theme-in-the-block-editor-showing-a-headline-paragraph-a-button-with-red-border.png\"><img decoding=\"async\" width=\"1024\" height=\"325\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-CTA-block-pattern-example-from-the-Twenty-Twenty-theme-in-the-block-editor-showing-a-headline-paragraph-a-button-with-red-border.png\/public\" alt=\"A CTA block pattern example from the Twenty Twenty theme in the block editor, showing a headline, paragraph, a button with red border\" class=\"wp-image-74070\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-CTA-block-pattern-example-from-the-Twenty-Twenty-theme-in-the-block-editor-showing-a-headline-paragraph-a-button-with-red-border.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-CTA-block-pattern-example-from-the-Twenty-Twenty-theme-in-the-block-editor-showing-a-headline-paragraph-a-button-with-red-border.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-CTA-block-pattern-example-from-the-Twenty-Twenty-theme-in-the-block-editor-showing-a-headline-paragraph-a-button-with-red-border.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-CTA-block-pattern-example-from-the-Twenty-Twenty-theme-in-the-block-editor-showing-a-headline-paragraph-a-button-with-red-border.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-block-patterns-vs-synced-patterns\">Block patterns vs synced patterns<\/h2><p>Regular block patterns and synced patterns enable users to insert a pre-made layout quickly. The main difference between these elements is what happens when you edit them.<\/p><p>Any changes made to a synced pattern will apply to every blog post or page you&rsquo;ve inserted it in. Meanwhile, the changes won&rsquo;t affect previous pages or posts if you use a regular block pattern.<\/p><p>Let&rsquo;s say you want to insert a CTA button in your posts. Consider using:<\/p><ul class=\"wp-block-list\">\n<li><strong>Regular pattern<\/strong> &ndash; to duplicate the basic design but personalize the CTA&rsquo;s content for each post.<\/li>\n\n\n\n<li><strong>Synced pattern<\/strong> &ndash; to add exactly the same CTA for all posts. You&rsquo;ll only need to edit the CTA block once to automatically update all instances.<\/li>\n<\/ul><p>Additionally, users can register block patterns in the Pattern directory or include them in a plugin or a theme. These pre-made patterns will give you more design options when creating post or page layouts.<\/p><h2 class=\"wp-block-heading\" id=\"h-why-use-wordpress-block-patterns\">Why use WordPress block patterns<\/h2><p>Once you start using block patterns, you&rsquo;ll start noticing the following benefits.<\/p><p><strong>Time-efficient<\/strong><\/p><p>There&rsquo;s no need to create individual items or custom-code them repeatedly. WordPress users can directly access common pre-designed patterns for various purposes from the editor and apply them to their pages or posts.<\/p><p>If the default pattern doesn&rsquo;t suit your taste, visit the Pattern library, or install a plugin or theme that offers multiple choices.<\/p><p><strong>Professional look<\/strong><\/p><p>Take advantage of professional designers&rsquo; and developers&rsquo; skills by copying their patterns from the WordPress Pattern directory. There are hundreds of pre-made patterns you can use and combine without hiring a designer.<\/p><p><strong>Reusability<\/strong><\/p><p>Save patterns you regularly use, so you don&rsquo;t have to recreate them every time. It&rsquo;s possible to create and reuse the same pattern for different areas of a WordPress website, such as headers, footers, and sidebars. This open-source platform also lets you make categories to find patterns in the future quickly.<\/p><p><strong>Customization<\/strong><\/p><p>Using block patterns enable users to tweak the design or content however they like. This helps theme developers provide customizable sections instead of offering a whole demo site and confusing clients on how to redesign it.<\/p><h2 class=\"wp-block-heading\" id=\"h-wordpress-block-pattern-categories\">WordPress block pattern categories<\/h2><p>The block editor comes with multiple categories to organize WordPress block patterns. Below are six default pattern categories in WordPress.<\/p><p>Some patterns may have overlapping categories since they include many elements. For instance, a pricing table is under both the Text and Call to Action patterns because it contains textual information and buttons.<\/p><h3 class=\"wp-block-heading\" id=\"h-headers\">Headers<\/h3><p>A header refers to the top section of a site page, which usually displays the website&rsquo;s logo, title, navigation menus, and search button. This block pattern category has six default options with different purposes and styles.<\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p>Learn how to <a href=\"\/tutorials\/how-to-edit-wordpress-header\">edit a header in WordPress<\/a> with Site Editor and Customizer.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-text\">Text<\/h3><p>The Text block pattern can be a great start when you don&rsquo;t know what to include when organizing content. This pattern already has a structure you can edit according to your needs. <\/p><p>This pattern typically includes paragraphs, media, and other content types. The Text pattern is useful for creating more visually appealing content on your page. Some examples are a quote and an image in a solid color with a description on the side.<\/p><h3 class=\"wp-block-heading\" id=\"h-call-to-action\">Call to action<\/h3><p>Calls to Action help WordPress users add attention-grabbing links to their content. You can use this pattern to trigger a specific action from visitors, such as signing up for your service or buying a product.<\/p><h3 class=\"wp-block-heading\" id=\"h-gallery\">Gallery<\/h3><p>The Gallery pattern can be useful for quickly <a href=\"\/tutorials\/how-to-make-an-online-portfolio\">making an engaging portfolio<\/a>. It arranges multiple photos appealingly, so you only need to upload images. If you don&rsquo;t have any, feel free to browse the WordPress media library to access thousands of free images to complement your content.<\/p><h3 class=\"wp-block-heading\" id=\"h-posts\">Posts<\/h3><p>The Posts block pattern lets you display posts based on the parameters you set, such as the latest or most popular ones. These posts can be regular blog posts or WooCommerce products. Generally, this pattern combines a featured image, a title, a date, and an excerpt. A Posts pattern can be a good starting point to structure your <a href=\"https:\/\/seo-hacker.com\/dynamic-website\/\" target=\"_blank\" rel=\"noopener\">dynamic page<\/a> and reuse it for other pages.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-use-wordpress-block-patterns\">How to use WordPress block patterns<\/h2><p>To use block patterns, follow the steps below:<\/p><ol class=\"wp-block-list\">\n<li>Open the WordPress editor and click on <strong>Toggle block inserter<\/strong> &rarr; <strong>Patterns<\/strong>.<\/li>\n\n\n\n<li>You should see a list of different categories, such as <strong>Featured<\/strong>, <strong>Buttons<\/strong>, and <strong>Gallery<\/strong>. Clicking on them will open another panel where you can see the pattern examples.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-block-pattern-list.png\"><img decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-block-pattern-list.png\/public\" alt=\"The Patterns tab showing where you can find block patterns on the Gutenberg editor\" class=\"wp-image-86178\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-block-pattern-list.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-block-pattern-list.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-block-pattern-list.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-block-pattern-list.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"3\">\n<li>Scroll down to see more of them, or click the <strong>Explore all patterns <\/strong>button to see large previews in a popup. Finally, choose your preferred one.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-explore-all-block-patterns.png\"><img decoding=\"async\" width=\"1024\" height=\"543\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-explore-all-block-patterns.png\/public\" alt=\"A popup showing block patterns under the Featured category\" class=\"wp-image-86179\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-explore-all-block-patterns.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-explore-all-block-patterns.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-explore-all-block-patterns.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/05\/wordpress-site-editor-explore-all-block-patterns.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"4\">\n<li>Drag and drop the block pattern or click it to insert it into the page or post.<\/li>\n\n\n\n<li>Once you have inserted the pattern, click on a block you want to customize to change the content or check the customization options on the right-side panel.<\/li>\n\n\n\n<li>Click on the group box to personalize the pattern, like adjusting its dimensions or adding a border.<\/li>\n\n\n\n<li>Add as many patterns as needed or remove them from your post by right-clicking the group box and selecting the three vertical dots &rarr; <strong>Remove<\/strong>.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-how-to-find-more-block-patterns-for-a-wordpress-site\">How to find more block patterns for a WordPress site<\/h3><p>Besides these several default block patterns, you can find more options by following the steps below.<\/p><p><strong>Visit the <\/strong><a href=\"https:\/\/wordpress.org\/patterns\/\" target=\"_blank\" rel=\"noopener\"><strong>WordPress pattern directory<\/strong><\/a><\/p><p>This free block library lets users find and share block patterns across the WordPress community. Head to the website and search for patterns &ndash; view them based on categories or sort the options by date or popularity.<\/p><p>Click on the block pattern to see its listing page, preview it on different screen sizes, and copy it.<\/p><p>Alternatively, directly use it by hovering over the pattern, hitting the <strong>Copy <\/strong>button, and pasting it to your post or page.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/A-Copy-button-over-a-block-pattern-on-the-official-WordPress-Patterns-Directory-website.png\"><img decoding=\"async\" width=\"1024\" height=\"581\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-Copy-button-over-a-block-pattern-on-the-official-WordPress-Patterns-Directory-website.png\/public\" alt=\"A Copy button over a block pattern on the official WordPress Patterns Directory website\" class=\"wp-image-74073\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-Copy-button-over-a-block-pattern-on-the-official-WordPress-Patterns-Directory-website.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-Copy-button-over-a-block-pattern-on-the-official-WordPress-Patterns-Directory-website.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-Copy-button-over-a-block-pattern-on-the-official-WordPress-Patterns-Directory-website.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-Copy-button-over-a-block-pattern-on-the-official-WordPress-Patterns-Directory-website.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p><strong>Find a WordPress theme that offers block patterns<\/strong><\/p><p>Many <a href=\"\/tutorials\/what-is-a-wordpress-theme\">WordPress themes<\/a> include their own block patterns. Typically, these patterns will match the theme&rsquo;s aesthetic, and it&rsquo;s possible to access them within the WordPress editor.<\/p><p>Some of the <a href=\"\/tutorials\/best-free-wordpress-themes\/\">free WordPress themes<\/a> with custom block styles are:<\/p><ul class=\"wp-block-list\">\n<li>Twenty Twenty<\/li>\n\n\n\n<li>Twenty Twenty-One<\/li>\n\n\n\n<li>Bricksy<\/li>\n\n\n\n<li>Naledi<\/li>\n<\/ul><p><strong>Install a Plugin<\/strong><\/p><p>Besides themes, multiple <a href=\"\/tutorials\/what-is-wordpress-plugin\">WordPress plugins<\/a> provide block patterns. <a href=\"https:\/\/wordpress.org\/plugins\/redux-framework\/\" target=\"_blank\" rel=\"noopener\"><strong>Redux<\/strong><\/a><strong> <\/strong>is among the most popular options. This plugin offers 1,000+ new block patterns, which users can access from the Gutenberg editor. It also has demo sites to help them preview each block pattern.<\/p><h3 class=\"wp-block-heading\" id=\"h-how-to-create-custom-wordpress-block-patterns\">How to create custom WordPress block patterns<\/h3><p>While copying pre-made layouts from the pattern library or a WordPress plugin is possible, you may want to create your own block patterns to better suit your style. Below are two methods to help you create custom block patterns without coding.<\/p><p><strong>Using the block editor<\/strong><\/p><p>WordPress now has native support for creating custom patterns via the block editor. You can do so from the post, page, or site editor.<\/p><p>Start customizing a block or a group of blocks, and select <strong>Create pattern<\/strong> from the block toolbar menu. The pattern creation pop-up will appear where you can name the pattern and assign the block pattern to several categories or new ones. <\/p><p>You will see the <strong>Categories<\/strong> field. When you click it, it will show the existing categories in a drop-down. To create a new category, simply type the new category name in the field, and it will be created once the pattern is saved.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/11\/pattern-creation.png\"><img decoding=\"async\" width=\"355\" height=\"368\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/pattern-creation.png\/public\" alt=\"The interface for creating a pattern that has the categories field where users can enter custom categories\" class=\"wp-image-98267\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/pattern-creation.png\/w=355,fit=scale-down 355w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/pattern-creation.png\/w=289,fit=scale-down 289w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/pattern-creation.png\/w=145,fit=scale-down 145w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/a><\/figure><\/div><p><strong>Create a block pattern via the pattern library<\/strong><\/p><p>Another way to make a block pattern is by going to the Pattern directory and clicking on the <strong>Create New Pattern<\/strong> link.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Create-New-Pattern-link-at-the-top-of-the-WordPress-Pattern-library.png\"><img decoding=\"async\" width=\"1024\" height=\"437\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Create-New-Pattern-link-at-the-top-of-the-WordPress-Pattern-library.png\/public\" alt=\"The Create New Pattern link at the top of the WordPress Pattern library\" class=\"wp-image-74079\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Create-New-Pattern-link-at-the-top-of-the-WordPress-Pattern-library.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Create-New-Pattern-link-at-the-top-of-the-WordPress-Pattern-library.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Create-New-Pattern-link-at-the-top-of-the-WordPress-Pattern-library.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Create-New-Pattern-link-at-the-top-of-the-WordPress-Pattern-library.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>\n\n<div><p class=\"important\"><strong>Important!<\/strong> Note that creating block patterns through this method requires you to sign in or create a WordPress.org account.<\/p><\/div>\n\n\n\n<\/p><p>Once signed in, you should see the WordPress block editor that looks similar to the usual one. Add blocks to make your pattern layout and play around with the customization options. Save the design as a draft if you want to keep it for yourself, or hit the <strong>Submit <\/strong>button to share it with the community. <\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Save-draft-and-Submit-buttons-at-upper-right-corner-of-the-Pattern-depository_s-block-editor-1.png\"><img decoding=\"async\" width=\"1024\" height=\"511\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Save-draft-and-Submit-buttons-at-upper-right-corner-of-the-Pattern-depository_s-block-editor-1.png\/public\" alt=\"The Save draft and Submit buttons at upper right corner of the Pattern depository's block editor\n\" class=\"wp-image-74090\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Save-draft-and-Submit-buttons-at-upper-right-corner-of-the-Pattern-depository_s-block-editor-1.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Save-draft-and-Submit-buttons-at-upper-right-corner-of-the-Pattern-depository_s-block-editor-1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Save-draft-and-Submit-buttons-at-upper-right-corner-of-the-Pattern-depository_s-block-editor-1.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Save-draft-and-Submit-buttons-at-upper-right-corner-of-the-Pattern-depository_s-block-editor-1.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Simply copy and paste the pattern from<strong> <\/strong>the <strong>My Patterns <\/strong>page to your website when you want to use it. You can manage all your custom patterns on this page, including those you&rsquo;ve shared, favored, and drafted.<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/The-My-Patterns-page-on-the-Pattern-library.png\"><img decoding=\"async\" width=\"1024\" height=\"330\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-My-Patterns-page-on-the-Pattern-library.png\/public\" alt=\"The My Patterns page on the Pattern library\n\" class=\"wp-image-74091\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-My-Patterns-page-on-the-Pattern-library.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-My-Patterns-page-on-the-Pattern-library.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-My-Patterns-page-on-the-Pattern-library.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-My-Patterns-page-on-the-Pattern-library.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Before you share the block pattern, don&rsquo;t forget to read the <a href=\"https:\/\/wordpress.org\/patterns\/about\/\" target=\"_blank\" rel=\"noopener\">pattern directory guide<\/a>, and add a description.<\/p><h3 class=\"wp-block-heading\" id=\"h-how-to-manually-create-block-patterns\">How to manually create block patterns<\/h3><p>Besides installing a plugin and visiting the Pattern library, users can make new WordPress block patterns manually and add them to the theme by customizing the <strong>functions.php<\/strong> file.<\/p><p>Create your own patterns on a post or page editor, then switch to the<strong> Code Editor<\/strong> mode by selecting the three vertical dots in the upper right corner. Copy all code and paste it into a plain text editor like Notepad.<\/p><p>Next, head to the WordPress dashboard, click <strong>Appearance <\/strong>&rarr; <strong>Theme File Editor<\/strong>, and find the <strong>functions.php<\/strong> file. <\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/The-functions.php-file-within-the-Appearance-menu-Theme-File-Editor.png\"><img decoding=\"async\" width=\"1024\" height=\"481\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-functions.php-file-within-the-Appearance-menu-Theme-File-Editor.png\/public\" alt=\"The functions.php file within the Appearance menu -&gt; Theme File Editor\" class=\"wp-image-74092\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-functions.php-file-within-the-Appearance-menu-Theme-File-Editor.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-functions.php-file-within-the-Appearance-menu-Theme-File-Editor.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-functions.php-file-within-the-Appearance-menu-Theme-File-Editor.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-functions.php-file-within-the-Appearance-menu-Theme-File-Editor.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Copy and paste the following code at the end of the file.<\/p><pre class=\"wp-block-preformatted\">function function_name() {\n  register_block_pattern(\n    'slug',\n    array(\n        'title' =&gt; __( 'your pattern title', 'text-domain' ),\n        'description' =&gt; _x( 'your pattern description', 'Block pattern description', 'text-domain' ),\n        'content' =&gt; &lsquo;your block content code&rsquo;,\n    )\n);\n}\nadd_action( 'init', 'function_name' );<\/pre><p>Specify the pattern title and description placeholders with your own, and replace the text of your <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">block content code <\/code>with the code from Notepad. Ensure you leave the single quotes surrounding the text in place. Finally, click the <strong>Update File<\/strong> button to save changes.<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Update-File-button-in-the-functions.php-file-and-a-block-of-code-for-creating-a-custom-pattern.png\"><img decoding=\"async\" width=\"1024\" height=\"456\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Update-File-button-in-the-functions.php-file-and-a-block-of-code-for-creating-a-custom-pattern.png\/public\" alt=\"The Update File button in the functions.php file and a block of code for creating a custom pattern\n\" class=\"wp-image-74093\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Update-File-button-in-the-functions.php-file-and-a-block-of-code-for-creating-a-custom-pattern.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Update-File-button-in-the-functions.php-file-and-a-block-of-code-for-creating-a-custom-pattern.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Update-File-button-in-the-functions.php-file-and-a-block-of-code-for-creating-a-custom-pattern.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Update-File-button-in-the-functions.php-file-and-a-block-of-code-for-creating-a-custom-pattern.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>See the results by creating a new page and clicking <strong>Toggle block inserter<\/strong> &rarr; the <strong>Patterns <\/strong>tab. Click on the dropdown menu and select <strong>Uncategorized<\/strong>. Here you should see your new custom block pattern.<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Free-trial-CTA-block-pattern-under-the-Uncategorized-menu-the-final-result-of-creating-a-custom-pattern-manually.png\"><img decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Free-trial-CTA-block-pattern-under-the-Uncategorized-menu-the-final-result-of-creating-a-custom-pattern-manually.png\/public\" alt=\"The Free trial CTA block pattern under the Uncategorized menu, the final result of creating a custom pattern manually\n\" class=\"wp-image-74094\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Free-trial-CTA-block-pattern-under-the-Uncategorized-menu-the-final-result-of-creating-a-custom-pattern-manually.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Free-trial-CTA-block-pattern-under-the-Uncategorized-menu-the-final-result-of-creating-a-custom-pattern-manually.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Free-trial-CTA-block-pattern-under-the-Uncategorized-menu-the-final-result-of-creating-a-custom-pattern-manually.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/The-Free-trial-CTA-block-pattern-under-the-Uncategorized-menu-the-final-result-of-creating-a-custom-pattern-manually.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-how-to-export-and-import-block-patterns\">How to export and import block patterns<\/h3><p>When managing multiple WordPress websites, you can export and import custom block patterns easily to make them available on all sites. This will save you time as you don&rsquo;t have to recreate the custom pattern manually on each site.<\/p><p>To export a custom pattern, open the pattern library in the Site Editor by clicking on the WordPress or website icon at the top left corner and selecting <strong>Patterns<\/strong>. Find the pattern to export, click the <strong>Actions<\/strong> button (ellipsis icon) below the pattern thumbnail to open the drop-down menu, and select <strong>Export as JSON<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/11\/export-json.png\"><img decoding=\"async\" width=\"371\" height=\"479\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/export-json.png\/public\" alt=\"The export as JSON option for a pattern\" class=\"wp-image-98265\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/export-json.png\/w=371,fit=scale-down 371w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/export-json.png\/w=232,fit=scale-down 232w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/export-json.png\/w=116,fit=scale-down 116w\" sizes=\"(max-width: 371px) 100vw, 371px\" \/><\/a><\/figure><\/div><p>Your browser will then open the download prompt to save the JSON file on your computer.<\/p><p>Once you have the patterns&rsquo; JSON files, you can import them to other WordPress sites.<\/p><p>Open the pattern library and click the <strong>Add New Pattern<\/strong> button on the top right corner of the page. Select <strong>Import pattern from JSON,<\/strong> and you will be prompted to choose a JSON file from your local computer. Find the pattern&rsquo;s JSON file and upload it.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/07\/1.png\"><img decoding=\"async\" width=\"279\" height=\"203\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/1.png\/public\" alt=\"Import pattern from JSON option\" class=\"wp-image-113224\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/1.png\/w=279,fit=scale-down 279w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/1.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 279px) 100vw, 279px\" \/><\/a><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-how-to-remove-a-block-pattern-from-wordpress\">How to remove a block pattern from WordPress<\/h3><p>You can remove or unregister a block pattern you&rsquo;ve registered by copying and pasting this code on your <strong>functions.php<\/strong> file:<\/p><pre class=\"wp-block-preformatted\">function unregister_my_patterns() {\n  unregister_block_pattern('your pattern title');\n}\n\nadd_action( 'init', 'unregister_my_patterns' );<\/pre><p>In this example pattern, <strong>Free trial CTA<\/strong> is the pattern name we used when registering it. If the process is successful, you won&rsquo;t see the pattern in the block inserter anymore.<\/p><figure class=\"wp-block-image aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/A-code-example-for-a-removing-registered-custom-pattern.png\"><img decoding=\"async\" width=\"575\" height=\"135\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-code-example-for-a-removing-registered-custom-pattern.png\/public\" alt=\"A code example for a removing registered custom pattern\n\" class=\"wp-image-74095\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-code-example-for-a-removing-registered-custom-pattern.png\/w=575,fit=scale-down 575w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-code-example-for-a-removing-registered-custom-pattern.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/12\/A-code-example-for-a-removing-registered-custom-pattern.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/a><\/figure><p>It&rsquo;s also possible to remove the WordPress core block patterns by using core as the prefix and mentioning the pattern&rsquo;s name, such as:<\/p><pre class=\"wp-block-preformatted\">unregister_block_pattern( 'core\/Pricing table' );<\/pre><p>If you wish to delete all default block patterns, use the following code:<\/p><pre class=\"wp-block-preformatted\">remove_theme_support( 'core-block-patterns' );<\/pre><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-wordpress-hosting\" href=\"\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>A block pattern is a pre-designed layout consisting of one or more blocks, helping users create WordPress websites quickly and easily.<\/p><p>You can find default WordPress block patterns in the block editor and insert them into your page or post. If you want more options, visit the Pattern directory, install a plugin like <strong>Redux<\/strong>, or search for WordPress themes offering multiple patterns.<\/p><p>It&rsquo;s also possible to make your own WordPress block patterns using the <strong>Blockmeister <\/strong>plugin or an editor in the Pattern library. Alternatively, design a new block pattern by inserting code in your <strong>functions.php<\/strong> file. Now you understand what a WordPress block pattern is, it&rsquo;s time to start using it to speed up your <a href=\"\/tutorials\/how-to-design-a-website\">website design process<\/a>. Good luck!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First introduced in WordPress 5.5, block patterns have opened the way for the Gutenberg editor to be a full-scale page [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/wordpress-block-patterns\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":198,"featured_media":79781,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"What Are WordPress Block Patterns and How to Use Them","rank_math_description":"WordPress block patterns are predefined blocks that can be easily inserted into a WordPress site. Learn how to use them in this article.","rank_math_focus_keyword":"wordpress block patterns","footnotes":""},"categories":[22642,22637],"tags":[],"class_list":["post-74067","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-content-creation","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/wordpress-block-patterns","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/padroes-de-bloco-wordpress","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/wordpress-block-patterns","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/understanding-wordpress-block-patterns-what-they-are-and-how-to-use-them","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/understanding-wordpress-block-patterns-what-they-are-and-how-to-use-them","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/padroes-de-bloco-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/wordpress-block-patterns","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/wordpress-block-patterns","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/wordpress-block-patterns","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/wordpress-block-patterns","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/74067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/198"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=74067"}],"version-history":[{"count":18,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/74067\/revisions"}],"predecessor-version":[{"id":113225,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/74067\/revisions\/113225"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media\/79781"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=74067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=74067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=74067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}