  {"id":2799,"date":"2024-02-06T14:59:56","date_gmt":"2024-02-06T19:59:56","guid":{"rendered":"https:\/\/carleton.ca\/cutheme-docs\/?page_id=2799"},"modified":"2024-09-18T20:31:21","modified_gmt":"2024-09-19T00:31:21","slug":"how-to-create-patterns","status":"publish","type":"page","link":"https:\/\/carleton.ca\/cutheme-docs\/mastery\/module-6-block-patterns\/how-to-create-patterns\/","title":{"rendered":"Creating Patterns"},"content":{"rendered":"\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n            <div class=\"cu-textmedia flex flex-col lg:flex-row mx-auto gap-6 md:gap-10 my-6 md:my-12 first:mt-0 max-w-5xl\">\n        <div class=\"justify-start cu-textmedia-content cu-prose-first-last\" style=\"flex: 0 0 100%;\">\n            <header class=\"font-light prose-xl cu-pageheader md:prose-2xl cu-component-updated cu-prose-first-last\">\n                                    <h1 class=\"cu-prose-first-last font-semibold !mt-2 mb-4 md:mb-6 relative after:absolute after:h-px after:bottom-0 after:bg-cu-red after:left-px text-3xl md:text-4xl lg:text-5xl lg:leading-[3.5rem] pb-5 after:w-10 text-cu-black-700 not-prose\">\n                        Creating Patterns\n                    <\/h1>\n                \n                                \n                                    \n\n\n<p>Module 6.2 \u2013 Mastery: Patterns: How to Create Block Patterns<\/p>\n\n\n\n                            <\/header>\n\n                    <\/div>\n\n            <\/div>\n\n    <\/div>\n<\/section>\n\n\n\n\n<div class=\"w-full max-w-xl mx-auto overflow-hidden bg-white rounded-lg shadow-lg cu-stackedlist cu-component not-contained not-prose\">\n    <h2 class=\"px-6 py-4 text-base font-semibold border-b rounded-t-lg md:text-xl bg-gray-50 text-cu-black-800\">\n        Table of Contents\n    <\/h2>\n    <div class=\"grid cu-scrollto cu-stackedlist--toc cu-stackedlist--1 md:grid-cols-1\">\n            <div class=\"space-y-1\">\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        1.\n                    <\/span>\n\n                    <a href=\"#step-by-step\" class=\"font-medium hover:underline\">\n                        Step-By-Step\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        2.\n                    <\/span>\n\n                    <a href=\"#video-tutorial\" class=\"font-medium hover:underline\">\n                        Video Tutorial\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        3.\n                    <\/span>\n\n                    <a href=\"#try-it-out\" class=\"font-medium hover:underline\">\n                        Try it Out!\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n            <\/div>\n\n    <\/div>\n<\/div>\n\n\n\n<p>It&#8217;s simple to create block patterns that you can use to consistently layout content on your website!<\/p>\n\n\n\n<h2 id=\"step-by-step\" class=\"wp-block-heading\">Step-By-Step<\/h2>\n\n\n\n<p><strong class=\"myprefix-text-bold\">1. <\/strong>Create a pattern base<\/p>\n\n\n\n<p>You can create a pattern from an existing set of blocks on any page on your website. Or you can make a brand new page of blocks to use as your base.<\/p>\n\n\n\n<p><strong class=\"myprefix-text-bold\">2.<\/strong> Choose blocks for your pattern <\/p>\n\n\n\n<p>Select the blocks you wish to include in your pattern.<\/p>\n\n\n\n<p><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">Tip:<\/em><\/strong> Use the List View at the top left to select blocks. This is often easier than trying to highlight blocks in the design area.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"636\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.50.38@2x.png\" alt=\"List view\" class=\"wp-image-2803\" style=\"width:274px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.50.38@2x.png 758w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.50.38@2x-320x268.png 320w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.50.38@2x-512x430.png 512w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><\/figure>\n\n\n\n<p><strong class=\"myprefix-text-bold\">3.<\/strong> Create a Pattern<\/p>\n\n\n\n<p>Click the three dots in the block context menu once you have the blocks highlighted. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"958\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.49.06@2x.png\" alt=\"Choose create pattern from menu\" class=\"wp-image-2802\" style=\"width:283px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.49.06@2x.png 800w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.49.06@2x-320x383.png 320w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.49.06@2x-512x613.png 512w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.49.06@2x-768x920.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><strong class=\"myprefix-text-bold\">4. <\/strong>Name and Save!<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Give your pattern a name. <\/li>\n\n\n\n<li>You can also categorize it.<\/li>\n\n\n\n<li>Use the toggle to choose whether you want a synced or non-synced pattern. <br>*<strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">Note <\/em><\/strong>that by default, &#8220;Synced&#8221; is selected. Choosing this option will result in updates to the pattern across the entire site when edited. Choose with caution! <a href=\"https:\/\/carleton.ca\/cutheme-docs\/mastery\/module-6-block-patterns\/module-6-understanding-patterns\/\">Find out more about synced vs. non-synced block patterns<\/a>. here.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"718\" height=\"908\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.53.53@2x.png\" alt=\"\" class=\"wp-image-2804\" style=\"width:249px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.53.53@2x.png 718w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.53.53@2x-320x405.png 320w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/02\/CleanShot-2024-02-06-at-14.53.53@2x-512x647.png 512w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/figure>\n\n\n\n<p><strong class=\"myprefix-text-bold\"><em class=\"myprefix-text-italic\">Note<\/em><\/strong>: Not all blocks can be used in patterns. If Create Pattern does not appear when you have blocks selected, you have likely included a non-compatible block.<\/p>\n\n\n\n<h2 id=\"video-tutorial\" class=\"wp-block-heading\">Video Tutorial<\/h2>\n\n\n\n<div class=\"cu-section cu-section-5xl not-contained  cu-prose cu-prose-dark\"><figure class=\"cu-embed cu-component not-contained mx-auto max-w-5xl\"><div class=\"relative w-full pb-[56.25%] overflow-hidden border border-cu-black-100\"><iframe title=\"Videos Embed\" src=\"https:\/\/www.youtube.com\/embed\/UZTHGlcyU9Q\" class=\"cu-embed-iframe\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/div><\/figure><\/div>\n\n\n\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n        \n    \n    <dl class=\"cu-description cu-component-updated\">\n        \n    <div class=\"grid pt-4 pb-3 border-b accordion border-cu-black-100 md:pt-6 md:pb-5 first:border-t\">\n        <dt class=\"font-semibold not-prose\">\n            <button class=\"flex items-center justify-between w-full text-left accordion__button\" aria-expanded=\"false\" aria-controls=\"accordion-transcript-creating-patterns\">\n                <span class=\"flex-1 ml-auto text-left break-words whitespace-normal cu-icon\">\n                    Transcript \u2013 Creating Patterns\n                <\/span>\n                <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" class=\"w-5 h-5 ml-auto transition-transform rotate-0 accordion__icon text-cu-black-500\">\n                    <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.25 4.5l7.5 7.5-7.5 7.5\"><\/path>\n                <\/svg>\n            <\/button>\n        <\/dt>\n        <dd class=\"p-0 mt-0 cu-prose cu-prose-first-last accordion__content md:p-0 md:mt-0\" hidden=\"\" id=\"accordion-transcript-creating-patterns\">\n            \n\n<p>Hello, and welcome to cuTheme Mastery Training, Module 6. In this video, we will go over creating patterns.<\/p>\n\n\n\n<p>So, now that you know what a pattern is, it\u2019s time to see how they can be created.<\/p>\n\n\n\n<p>First, create the base for your pattern, the specific blocks in their specific locations. I have this one made here, but feel free to experiment with different layouts for your patterns, and use what works best for your site.<\/p>\n\n\n\n<p>Next, select the blocks you want included within your pattern. To do this, select the three lines here. You can select what blocks you want in it. So, select your first block, and select your end block, and shift-click. This will select all blocks in between, so now all your blocks have been selected.<\/p>\n\n\n\n<p>Once all your blocks are highlighted, select the three dots, and select \u201ccreate pattern\u201d.<\/p>\n\n\n\n<p>You will then be able to give your pattern a name, and place it in any categories you feel fit.<\/p>\n\n\n\n<p>Lastly, you can choose whether this pattern is synced or non-synced.<\/p>\n\n\n\n<p>By default, synced is selected, which means when you edit the pattern, it will update every instance of that pattern across your site. Make sure your choice is the one that will work the best with your site.<\/p>\n\n\n\n<p>Now click create, and you now have your own pattern.<\/p>\n\n\n        <\/dd>\n    <\/div>\n\n\n    <\/dl>\n\n\n    <\/div>\n<\/section>\n\n\n\n<h2 id=\"try-it-out\" class=\"wp-block-heading\">Try it Out!<\/h2>\n\n\n\n<p>Now that you know how to create a pattern, time to try it out!<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a set of blocks to use as a pattern. For example, a Header block, a paragraph block, and a text &amp; image block.<\/li>\n\n\n\n<li>Create and save as a <em class=\"myprefix-text-italic\">synced<\/em> pattern. <\/li>\n\n\n\n<li>Create a second set of blocks &#8211; it can be similar!<\/li>\n\n\n\n<li>Create and save as a <em class=\"myprefix-text-italic\">non-synced <\/em>pattern. <\/li>\n<\/ol>\n\n\n\n<p>We&#8217;ll explore using your patterns in the next module!<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/carleton.ca\/cutheme-docs\/mastery\/module-6-block-patterns\/using-patterns\/\">Next: Add patterns to your page<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s simple to create block patterns that you can use to consistently layout content on your website! Step-By-Step 1. Create a pattern base You can create a pattern from an existing set of blocks on any page on your website. Or you can make a brand new page of blocks to use as your base. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":2769,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_cu_dining_location_slug":"","footnotes":"","_links_to":"","_links_to_target":""},"cu_page_type":[11],"class_list":["post-2799","page","type-page","status-publish","hentry","cu_page_type-general"],"acf":{"cu_post_thumbnail":false},"_links":{"self":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/comments?post=2799"}],"version-history":[{"count":5,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2799\/revisions"}],"predecessor-version":[{"id":4249,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2799\/revisions\/4249"}],"up":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2769"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/media?parent=2799"}],"wp:term":[{"taxonomy":"cu_page_type","embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/cu_page_type?post=2799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}