Support » Plugin: Gutenberg » Add a custom attribute to Gutenberg core blocks?

  • Resolved ericnmurphy


    I’m trying to add a dropdown to WordPress core blocks to select a data attribute that will be added to the front-end (e.g. data-attr=”value-from-dropdown”).

    I think the solution is to add a custom attribute to the core blocks, set it in the back-end and pass it to the front-end. Seems pretty trivial to add this to a new block, but I can’t for the life of me figure out how to add a new attribute to a core block.

    Is this possible, or is the functionality just not there yet?

    • This topic was modified 1 month, 2 weeks ago by  ericnmurphy.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.