Title: default image block classname
Last modified: November 28, 2019

---

# default image block classname

 *  [edrescher](https://wordpress.org/support/users/edrescher/)
 * (@edrescher)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/default-image-block-classname/)
 * Hello, I am trying to use JS to update a default classname which is added to 
   an Image Block.
    When the user adds an new image block in their editor, a default
   class is added. Additionally, I need to be able to update this default class,
   so if a user updates a select drop down in the editor, the default class added
   to future image blocks is updated.
 * I have tried using Styles, and registering default styles for image blocks which
   seems to be on the right track, but I am unable to update the default style for
   future image blocks with JS.
 * Is there another way of doing this?

Viewing 1 replies (of 1 total)

 *  [Carike](https://wordpress.org/support/users/carike/)
 * (@carike)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/default-image-block-classname/#post-12536982)
 * Hallo 🙂
 * You can ask your question here: [https://wordpress.org/support/plugin/gutenberg/](https://wordpress.org/support/plugin/gutenberg/)
   
   That forum is monitored by the Gutenberg team. They do not come around these 
   forums very often.

Viewing 1 replies (of 1 total)

The topic ‘default image block classname’ is closed to new replies.

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 3 participants
 * Last reply from: [Carike](https://wordpress.org/support/users/carike/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/default-image-block-classname/#post-12536982)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
