beginner-wordpress-user/platform/Using block patterns/youtube/Using block patterns.en.srt
studio 4cfcf09a97 sync: full archive from pipeline (250 files)
Sources: video-subtitle-pipeline artifacts/beginner-wordpress-user/
- subtitles/: en, zh, bilingual SRT/ASS (100 files)
- platform/: youtube SRT + bilibili BCC per video (75 files)
- manifests/: per-video manifest.json (25 files)
- quality/: quality reports (50 files)
2026-04-13 23:35:08 +08:00

311 lines
8.7 KiB
Text

1
00:00:00,000 --> 00:00:04,000
We have learned to use and group blocks to build our site.
2
00:00:04,000 --> 00:00:12,000
But do you know there is a shortcut to create custom content layouts faster, and that is using block patterns.
3
00:00:12,000 --> 00:00:16,000
We are not all designers and it is time consuming to create layouts.
4
00:00:16,000 --> 00:00:19,000
Block patterns provide a solution.
5
00:00:19,000 --> 00:00:30,000
The learning objectives for this lesson are using and modifying available pre-made block patterns, exploring the block pattern directory, creating your own synced and non-synced patterns,
6
00:00:30,000 --> 00:00:34,000
and lastly utilizing header and photo patterns.
7
00:00:34,000 --> 00:00:36,000
But what are patterns?
8
00:00:36,000 --> 00:00:43,000
Block patterns are pre-made designs or layouts of grouped blocks that are available to modify and change to meet your needs.
9
00:00:43,000 --> 00:00:48,000
It will essentially save you time, but also enhance creativity and design.
10
00:00:48,000 --> 00:00:53,000
Instead of nesting and grouping blocks together, patterns have already done that for you.
11
00:00:53,000 --> 00:01:01,000
And in one click, you will have access to beautiful and functional layouts from call to actions, headers, columns, galleries and more.
12
00:01:01,000 --> 00:01:11,000
To add a pattern, click on the plus icon on the top left, also called the insertor, and open up the patterns tab on the right next to blocks.
13
00:01:11,000 --> 00:01:14,000
At the top, you will see all patterns.
14
00:01:14,000 --> 00:01:21,000
And below that, all your synced and non-synced patterns you have created yourself.
15
00:01:21,000 --> 00:01:30,000
Synced patterns are marked with a purple icon and non-synced patterns don't have one, but more about synced and non-synced patterns in a moment.
16
00:01:30,000 --> 00:01:34,000
Below my patterns, you will see the patterns that come with your theme.
17
00:01:34,000 --> 00:01:39,000
They are organized into various categories to help you find what you need.
18
00:01:39,000 --> 00:01:46,000
Once you click on the category, you will see a preview of all the available patterns when you scroll down.
19
00:01:46,000 --> 00:01:54,000
You can also select explore all patterns at the bottom to get a bird's eye view of the patterns that come with your theme.
20
00:01:54,000 --> 00:01:59,000
You can also go through them category by category.
21
00:01:59,000 --> 00:02:02,000
Let's look at a quick example.
22
00:02:02,000 --> 00:02:10,000
When you select a pattern, in this case one from my featured category, you will be able to modify the pattern to meet your design requirements.
23
00:02:10,000 --> 00:02:15,000
It can easily be edited in the same way as any other block.
24
00:02:15,000 --> 00:02:20,000
You can change the alignment of the container block.
25
00:02:20,000 --> 00:02:23,000
You can edit the heading.
26
00:02:23,000 --> 00:02:26,000
Update the content.
27
00:02:26,000 --> 00:02:33,000
Replace the images.
28
00:02:33,000 --> 00:02:40,000
And for example, change the background color of your pattern as well as other styling options.
29
00:02:40,000 --> 00:02:44,000
But all the hard work and the layout has already been done for you.
30
00:02:44,000 --> 00:02:51,000
The only thing you have to do is select the pattern and modify it to meet your requirements.
31
00:02:51,000 --> 00:02:54,000
The patterns that come with your theme are limited.
32
00:02:54,000 --> 00:02:59,000
If you want more patterns to choose from, you can explore the block pattern directory.
33
00:02:59,000 --> 00:03:04,000
To do that, let's make our way to the WordPress.org website.
34
00:03:04,000 --> 00:03:10,000
Click on extend and then select patterns.
35
00:03:10,000 --> 00:03:15,000
Here you can search and find new patterns to use on your website.
36
00:03:15,000 --> 00:03:24,000
You will notice there is an option to only view curated patterns or hundreds of patterns that have been added by the WordPress community.
37
00:03:24,000 --> 00:03:33,000
You can type in the search block, search by category or browse through all the available options until you find what you're looking for.
38
00:03:33,000 --> 00:03:39,000
Once you find the pattern you are after, you can click on the star to add it to your favorites.
39
00:03:39,000 --> 00:03:54,000
When you are ready to add the pattern to your site, open the pattern, click on copy pattern, return to your website and then paste.
40
00:03:54,000 --> 00:04:00,000
And now you can start changing and modifying your pattern.
41
00:04:00,000 --> 00:04:06,000
And this is what my pattern looks like after altering it to meet my design needs.
42
00:04:06,000 --> 00:04:14,000
When you make your way to the site editor, and in this side view, you will see a patterns tab.
43
00:04:14,000 --> 00:04:22,000
And here you can manage, edit and create all of your patterns, synced or not, along with your template parts.
44
00:04:22,000 --> 00:04:26,000
When you click on my patterns, you will see all your custom patterns.
45
00:04:26,000 --> 00:04:31,000
The synced patterns have a purple icon and the unsynced patterns don't.
46
00:04:31,000 --> 00:04:39,000
If you hover over the purple icon, it clearly says editing this pattern will also update anywhere it is used.
47
00:04:39,000 --> 00:04:47,000
Below custom patterns, we will see all the available categories as well as the patterns that are provided by your theme.
48
00:04:47,000 --> 00:04:57,000
It is also worth noting when you click on the three vertical dots of a pattern that comes with your theme, you can also duplicate and add that pattern to your custom patterns area.
49
00:04:57,000 --> 00:05:02,000
And when you've saved it as a custom pattern, you can modify it as you please.
50
00:05:02,000 --> 00:05:08,000
And at the bottom, all your header, footer and general template part patterns.
51
00:05:08,000 --> 00:05:10,308
Let's start with your own patterns.
52
00:05:10,308 --> 00:05:18,000
If you click on the plus icon next to patterns, you can create your own custom synced or unsynced patterns.
53
00:05:18,000 --> 00:05:22,000
After naming it, you can add it to the relevant category.
54
00:05:22,000 --> 00:05:27,000
In this case, a call to action category.
55
00:05:27,000 --> 00:05:31,000
And then you can choose to sync it or not.
56
00:05:31,000 --> 00:05:35,000
In this example, I will choose to sync the pattern.
57
00:05:35,000 --> 00:05:41,000
And at the bottom, it says sync this pattern across multiple locations.
58
00:05:41,000 --> 00:05:44,000
And now you can start creating your synced pattern.
59
00:05:44,000 --> 00:05:48,286
And when it is ready, we can click save.
60
00:05:48,286 --> 00:05:54,000
To create a pattern in the block editor, merely select the design,
61
00:05:54,000 --> 00:06:02,000
then click on the three vertical dots of the block toolbar, and select create pattern.
62
00:06:02,000 --> 00:06:07,000
And then follow the same process as before.
63
00:06:07,000 --> 00:06:12,000
And I will once again select a synced pattern.
64
00:06:12,000 --> 00:06:18,000
So if you love a design, you can save it and reuse it as a synced or non-synced pattern.
65
00:06:18,000 --> 00:06:21,000
Lastly, let's talk about template parts.
66
00:06:21,000 --> 00:06:26,000
To manage your header and footer, you have template part patterns at your disposal.
67
00:06:26,000 --> 00:06:32,000
Templates create a design for a web page, and this is usually done by adding a header and footer template part.
68
00:06:32,000 --> 00:06:41,000
Let's look at an example and open up our page template.
69
00:06:41,000 --> 00:06:48,000
And when you open your page template, we can go ahead and select our current header, and then click on the three vertical dots.
70
00:06:48,000 --> 00:06:51,000
And now we can select replace header.
71
00:06:51,000 --> 00:06:58,000
And when you do this, you can select one of your existing template parts or patterns that come with your theme.
72
00:06:58,000 --> 00:07:05,000
And it works exactly the same way with your footer.
73
00:07:05,000 --> 00:07:09,000
Below patterns, you can manage and edit your existing template parts.
74
00:07:09,000 --> 00:07:15,000
To add a new template part, click on the plus icon next to patterns and select create template part.
75
00:07:15,000 --> 00:07:22,000
Here you will be able to select between creating a general footer or header template part.
76
00:07:22,000 --> 00:07:31,000
To create a new header template part, name it appropriately, select header, and then click create.
77
00:07:31,000 --> 00:07:37,000
And then you can start building your new header in template editing mode.
78
00:07:37,000 --> 00:07:41,000
I trust that patterns will also become one of your favorite new tools.