The Genesis custom blocks plugin is a free plugin which enables you to make custom blocks without having to use large amounts of code.
There’s 3 steps required to build your own custom block once you install & activate the Genesis Blocks plugin :
Step 1 – In your WordPress Dashboard, go to Custom Blocks > click Add New to create a new custom block.
Step 2 – Next to the Block menu item, click the field menu item, enter a name for your field label and select the Field Type from the drop down menu.
Step 3 – Code your block.php template in PHP using the
block_field function to match the block settings Field Name (slug) as seen in this example block.
The video shows you how to create a new custom block, configure the field settings for 1 field & code the block.php file to output your field value where ever you use the block on the front end of your post or page.
StudioPress also offer a premium version of the plugin called Genesis Custom Blocks Pro, free for Pro Plus Package owners.
You must be logged in to post a comment.