Modifying the Gutenberg Button Block

I am trying to learn how to use Gutenberg and would like to start with a simple plugin to modify the built-in button block.

Basically, I’d like my plugin to do two things.

One – modify the underlying html. Right now, the button is an a tag inside of a div tag. I just want an a without the div tag.

Secondly, I’d like to be able to add my own, custom classes (and not use the built-in classes).

Does anyone know how to do this?

Thanks.

0

Leave a Comment