0

Is there a simple way to add classnames to individual core Gutenberg blocks?

Blocks is a great step toward moving to a web where HTML structurally/functionally describes elements, which are styled elsewhere in CSS. However, this is limited in that blocks cannot be easily classed?

I'd be happy with a plugin that extends existing (or custom) block functionality to include classes and ids.

2
  • Possible duplicate of Add custom class to core blocks in Gutenberg Commented Oct 5, 2018 at 1:15
  • Not a duplicate. The referenced article asks how to add permanent classes to core blocks at the code level. I was asking how to add classes dynamically from the admin interface.
    – Wes Modes
    Commented Oct 6, 2018 at 2:43

1 Answer 1

1

Every block has a field for custom CSS classes in the 'Advanced' panel:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.