Skip to content

Conversation

@joshpensky
Copy link
Contributor

Changes

  • Adds admin css to hide h1 button from heading dropdown

Note

Eventually we'll be able to do this by adding a block filter via PHP, but that won't be until WordPress 6.7: WordPress/gutenberg#63535

How To Test

  1. Open the Gutenberg editor
  2. Add a heading block
  3. Confirm you can't add an H1

@joshpensky joshpensky self-assigned this Oct 22, 2024
Copy link
Contributor

@braican braican left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That'll work. This will be a great thing to be able to do with a filter once 6.7 comes out though.

@joshpensky joshpensky merged commit 3ed3880 into main Oct 22, 2024
@joshpensky joshpensky deleted the hotfix/hide-h1 branch October 22, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants