Create Your Own Block Patterns for Gutenberg / the Block Editor



Block Patterns in Gutenberg are a powerful way to make reusable content templates without having to grab all of the blocks and build them from scratch in the WordPress Block Editor. But currently there isn’t a native no-code way to create patterns. Luckily, creating your own is as simple as copying and pasting some code. Here’s how to do it from start to finish.

Join the Build Something Club! https://buildsomething.club

## Links
Get the Code: https://github.com/jcasabona/jc-block-patterns
JSON Encoder: https://jsonformatter.org/json-escape
register_block_pattern: https://developer.wordpress.org/reference/functions/register_block_pattern/

## Chapters
00:00 – Intro
01:16 – Why Not Reusable Blocks?
03:11 – Designing the Block Pattern
04:42 – Copying the Block Code
05:05 – Escaping Block Code
05:53 – Plugin Setup
07:16 – Registering the Block Pattern
08:08 – The Block Pattern Definition
09:03 – Pattern Categories
09:47 – Adding our Block Code
10:02 – Testing
11:20 – Reviewing all the Steps
11:53 – Multiple Block Patterns
12:23 – That’s It!

~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~
To learn more, start here: https://casabona.org/start

Join my mailing list: https://buildsomething.email

Check out my Live Stream Gear: https://kit.co/jcasabona/youtube-live-stream-setup

Check out my Podcasting Gear: https://kit.co/jcasabona/my-podcasting-setup
~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~

Source

Similar Posts

  • Cut Your Podcast Outreach from Hours to Minutes!

    One of the most time consuming aspects of running a podcast is the guest outreach and scheduling. There’s research, the back and forth email, time zone calculations, and more. But what if I told you I’ve honed my process, and use automation, to cut it down from hours to minutes? Here’s my whole podcast guest…

  • Easy Member Events with WordPress!

    Creating virtual events has gotten so much easier in the last few years, but when it comes to creating member only events, it still feels like there’s a dance you need to do between your webinar software, your membership software, and getting everything working properly.

    Well, today I’m going to show you how with WordPress, you can easily create member only events that are shown to.

    Links:

    Restrict Content Pro: https://joe.casa/rcp
    The Events Calendar: https://joe.casa/events
    Kadence: https://joe.casa/kadence-blocks

    ~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~
    Join How I Built It PRO: https://howibuilt.it/pro

    Get free tips on growing and monetizing your podcast: https://profitablepodcaster.fm/tips

    Check out the Make Money Podcasting show: https://profitablepodcaster.fm/

    Check out my Live Stream Gear: https://kit.co/jcasabona/youtube-live-stream-setup

    Check out my Podcasting Gear: https://kit.co/jcasabona/my-podcasting-setup
    ~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~

  • Desk Tour: My Recording Setup

    Recently I made some changes to my desk and recording set up to simplify and remove a number of items. Here’s the result of that, and how I manage all of the recording gear, from my 2 mics to my Sony a6400. Check out the gear here: https://kit.co/jcasabona/youtube-live-stream-setup… Source

  • Adding Chapter Markers to Your Podcast with Forecast

    If you have a long, or segmented podcast, you can increase engagement by make it easier for listeners to get to the parts they actually want to listen to. That’s exactly what chapters do here on YouTube, and you can do the same thing with podcasts. While just listening timestamps might work on SOME platforms,…

  • Understanding A.I.’s Role in Online Course Creation

    If you create online courses, you won’t want to miss this very special discussion! I’ll be joined by Ronnie Burt, Business Lead at Automattic, who’s overseen development of the Sensei LMS plugin. We’re going to cover:

    – Managing emails for your online courses
    – A.I.’s role in assisting with online course creation.
    – Sensei’s upcoming A.I. Quiz Generator
    – Marketing automation tools for course creators and membership sites

    …plus we’ll be fielding questions live!

    This live stream is presented by Sensei. Learn more here: https://howibuilt.it/sensei

  • Stream Deck Tour and Revamp

    Last week on the podcast, I geeked out with Cat Mulvihill about our Stream Decks. on Today’s live stream, I’m going to give you a tour of both my XL and Stream Deck+, then review and update the buttons!