By helgatheviking


2019-02-07 19:19:16 8 Comments

Is it possible to add an additional text input before the Blocks editor? I'm trying to update my Subtitle plugin to be Gutenberg compatible, but the subtitle isn't really a "Block" and I think it's more similar to the page title.

Pre-WordPress 5.0, I used the edit_form_after_title hook, but in Gutenberg that's irrelevant, so I'm wondering how to inject a new, non-block, element?

Plugin in question: KIA Subtitle

Text input for a Subtitle in the Gutenberg editor. Appears after Title text area and before Blocks container.

1 comments

@Ashiquzzaman Kiron 2019-02-11 16:34:24

Initially Gutenberg had plans to implement subheading, See this ticket but later they deprecated it. As of now, there's no hook to do it other than building a custom block. May be in near future you'll find something useful.

I hope this helps

Related Questions

Sponsored Content

1 Answered Questions

[SOLVED] Load script after block is inserted

2 Answered Questions

[SOLVED] How to Parse an Array of Elements in Gutenberg Block

1 Answered Questions

What are all the query parameters for getEntityRecords?

0 Answered Questions

Modify the core/paragraph block

  • 2019-01-06 15:05:36
  • Michael
  • 218 View
  • 2 Score
  • 0 Answer
  • Tags:   block-editor

2 Answered Questions

[SOLVED] How to detect the usage of Gutenberg

  • 2018-11-30 10:01:01
  • KAGG Design
  • 2278 View
  • 8 Score
  • 2 Answer
  • Tags:   block-editor

1 Answered Questions

[SOLVED] Wordpress Gutenberg blocks: Input fields are not editable

  • 2018-12-31 02:17:50
  • Marty McGee
  • 103 View
  • 3 Score
  • 1 Answer
  • Tags:   block-editor

2 Answered Questions

[SOLVED] Help Unregistering a Core Block Type in Gutenberg

  • 2018-08-03 19:04:04
  • LKD
  • 1656 View
  • 4 Score
  • 2 Answer
  • Tags:   block-editor

0 Answered Questions

Get blocks from other pages, from within current page

  • 2018-12-23 15:31:43
  • Toby Osborne
  • 25 View
  • 0 Score
  • 0 Answer
  • Tags:   block-editor

1 Answered Questions

[SOLVED] Block validation: Block validation failed for `my-block`

  • 2018-09-20 08:58:50
  • André Kelling
  • 2029 View
  • 2 Score
  • 1 Answer
  • Tags:   block-editor

0 Answered Questions

Gutenberg: @element queries

  • 2018-04-20 09:58:19
  • Iadi
  • 96 View
  • 0 Score
  • 0 Answer
  • Tags:   block-editor

Sponsored Content