-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreadme.txt
More file actions
76 lines (58 loc) · 2.04 KB
/
readme.txt
File metadata and controls
76 lines (58 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
=== Block Patterns ===
Contributors: mervinpraison
Donate Link: https://goo.gl/Q4oiBG
Tags: gutenberg, blocks, block, pattern, patterns, block patterns, block pattern, blocks pattern, blocks patterns,
Requires at least: 5.0
Tested up to: 5.5.1
Stable tag: trunk
License: GPLv2 or later
New Block Patterns to Gutenberg.
== Description ==
This plugin contains patterns for you to check out, ranging from a simple text pattern to a more complex pattern containing both images and text.
[Create WordPress Block Patterns](https://mer.vin/wordpress/plugins/patterns/#create "Create WordPress Block Patterns")
= Add your block patterns to this plugin =
1. Fork
`
https://github.com/Praison/Patterns
`
2. Clone your new fork locally
`
git clone https://github.com/YOUR_USERNAME/Patterns.git
cd Patterns
`
3. Connect to original repository https://github.com/Praison/Patterns
`
git remote add --track master upstream https://github.com/Praison/Patterns.git
git fetch upstream
`
4. Create a new branch for your changes
`
git checkout -b YOUR_USERNAME upstream/master
`
5. Add your block patterns in ``index.php``
`
register_block_pattern(
'praison-gutenberg-block-patterns/TITLE-OF-YOUR-BLOCK-PATTERN', # Add Hyphens between lowercase words
array(
'title' => __( 'TITLE_OF_YOUR_BLOCK_PATTERN', 'praison-gutenberg-block-patterns' ),
'content' => "BLOCK_PATTERN_GOES_HERE",
'categories' => array("CATEGORY"), # eg: columns, text ..etc
)
);
`
6. Add, Commit, Push
`
git add .
git commit -m "Added block pattern TITLE_OF_YOUR_BLOCK"
git push -u origin YOUR_USERNAME
`
7. Submit your [pull request](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request "Creating Pull Request")
== Installation ==
= Steps =
1. Download the zip file
2. Extract the contents
3. Upload the folder `patterns` to your WP plugin folder `/wp-content/plugins/` directory
4. Go to Plugins > Plugins, and activate the plugin
== ChangeLog ==
= Version 1.0 =
* First release