Now it is time to add some block settings into the sidebar. Here is what I mean:
So we are going to have a couple of options for your block, their values will become the hidden field values of the subscription form on the website which the block displays.
In this tutorial we are going to continue to work with the “subscription form” block we created in the previous tutorial.
It was completely static if you remember, but for now we are going to make it editable just like that:
In this tutorial we are going to create a super-simple Gutenberg block. It is going to be a subscription form that is not even editable for now, but we are going to make it so in our next tutorials in this series.
The first time this tutorial was published back in the beginning of 2019, just after Gutenberg editor became the part of WordPress core.
A lot has been changed since then. Setting an icon for a block has become so much simpler.