In this session we will look at the different types of block patterns that can be created, the various ways that block patterns can be registered for a theme, and then create a few block pattern examples for some common theme requirements.
2
👋🏽
Welcome!
As you join, please get
your local WordPress
install ready:
Install and activate the Create Block Theme plugin
https://wordpress.org/plugins/create-block-theme/
Then, let everyone know in the chat where you’re
joining us from…
Introduction
â—‹ My name is Jonathan
â—‹ I am from Cape Town, South Africa
â—‹ Ex-developer turned code instructor
â—‹ Sponsored contributor at Automattic
Announcements
â—‹ Welcome, and thank you to Kathryn for co-hosting today!
○ We’ll be presenting in focus mode.
â—‹ You are welcome to ask questions.
â—‹ You are welcome to unmute to ask questions, or post them in the chat.
Announcements
○ Let’s get your local install ready:
• https://wordpress.org/plugins/create-block-theme/
â—‹ If I am going too fast, please let me know!
â—‹ We will be posting this session to https://wordpress.tv/ afterwards
â—‹ For more WordPress focused content please visit https://learn.wordpress.org/
Learning Outcomes
â—‹ What are Block Patterns
â—‹ Comparing Patterns to Template Parts
â—‹ An overview of the Block Pattern Directory
â—‹ How to create block patterns in PHP
â—‹ How to create block patterns using the patterns directory of your theme
â—‹ How to use patterns for custom functionality
Objectives 1
1. Create and use a simple button pattern
2. Create and use a custom header pattern
3. Register and use a pattern category
4. Create a cover pattern, with an image that is part of the theme
9