विवरण
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
Add your block patterns to this plugin
-
Fork
https://github.com/Praison/Patterns
-
Clone your new fork locally
git clone https://github.com/YOUR_USERNAME/Patterns.git cd Patterns
-
Connect to original repository https://github.com/Praison/Patterns
git remote add --track master upstream https://github.com/Praison/Patterns.git git fetch upstream
-
Create a new branch for your changes
git checkout -b YOUR_USERNAME upstream/master
-
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 ) );
-
Add, Commit, Push
git add . git commit -m "Added block pattern TITLE_OF_YOUR_BLOCK" git push -u origin YOUR_USERNAME
-
Submit your pull request
स्क्रिनसटहरू
स्थापना
Steps
- Download the zip file
- Extract the contents
- Upload the folder
patterns
to your WP plugin folder/wp-content/plugins/
directory - Go to Plugins > Plugins, and activate the plugin
योगदानकर्ता र डेभलपरहरू
“WordPress Block Patterns Plugin” खुला स्रोत सफ्टवेयर हो। निम्न व्यक्तिहरूले यो प्लगिनमा योगदान गरेका छन्।
योगदानकर्ताहरू“WordPress Block Patterns Plugin” लाई आफ्नो भाषामा अनुवाद गर्नुहोस्
विकासमा रुचि छ?
आरएसएस द्वारा कोड ब्राउज गर्नुहोस्, एसभीएन रिपजिटरी हेर्नुहोस्, वा विकास लग को सदस्यता लिनुहोस्।
चेन्जलग
Version 1.0
- First release