Button Block

The Button block is essential for forms as it enables visitors to send the data they have filled in. It generates a <button> element and offers options for submit and reset functions.

To add a Button block, create a new form and open the Block Inserter tool. Use the search bar to find the Button block and click on its icon to insert it into the editor.

You can also choose the Button block from the “Block Inserter” (+) pop-up window when you click on the (+) sign.

Block Settings

In order to take full advantage of the Block Editor in WordPress, the Button block supports Color settings to modify the text and background colors, the Dimension settings to adjust padding and margin size, and the Border settings to control the width and radius of each side of the element.

Official documentation for these settings controls are available on WordPress.org:

First Published

Last Updated