0

I have looked around and couldn't find a solution for this, what I am looking to do is add a data-attribute to the Gutenberg block

The perfect place for it would be the "Advanced" section with the CSS Class and HTML Anchor. For example, if I add in data-color, there could be a label of "Color" with a text entry where I can add in #FFFFFF

enter image description here

2
  • 1
    Are you looking to add the data-attribute to all blocks? Or just a single custom block?
    – Phil
    Jul 23 '21 at 14:56
  • All blocks that accept class, it looks like this is a duplicate, should be marked as soon
    – Kender
    Jul 23 '21 at 23:02

Browse other questions tagged or ask your own question.