Title: Custom Heading Block
Last modified: July 23, 2021

---

# Custom Heading Block

 *  [bob](https://wordpress.org/support/users/dannyotoole/)
 * (@dannyotoole)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wordpress-custom-heading-block/)
 * So I’ve seen wordpress’s heading block where you can choose what heading tag 
   the title is, so h1, h3 etc…. I’m making my own custom gutenberg blocks and i’d
   like to implement this heading tag switch feature where you can dynamically change
   the h tag of the title within my custom block.
 * The only problem is it seems to be somewhat difficult to find out how this wordpress
   heading block functions. I can’t seem to find any developer docs or github code
   or anything on it.
 * So my question is are there developer docs for this block? cause i’ve already
   looked at the basic how to start. this link:
    [https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/writing-your-first-block-type/](https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/writing-your-first-block-type/)
 * I know how to make blocks and have already made a good few. just looking at this
   dynamic heading block in particular.
 * Thanks.

Viewing 1 replies (of 1 total)

 *  [Isabel Brison](https://wordpress.org/support/users/isabel_brison/)
 * (@isabel_brison)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wordpress-custom-heading-block/#post-14699944)
 * Hi there!
 * The core Heading block [uses a dropdown](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/heading/edit.js#L42-L43)
   to set the heading level as a block attribute, which then gets output by the 
   [block save function](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/heading/save.js#L12-L13).
   You can also see how the dropdown itself is built [here](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/heading/heading-level-dropdown.js#L44).
   Hope that helps!

Viewing 1 replies (of 1 total)

The topic ‘Custom Heading Block’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [Isabel Brison](https://wordpress.org/support/users/isabel_brison/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/wordpress-custom-heading-block/#post-14699944)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
