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

0 Answered Questions

Controlling the RichText component outside of blocks

  • 2019-07-12 18:06:45
  • user2985710
  • 14 View
  • 0 Score
  • 0 Answer
  • Tags:   block-editor

0 Answered Questions

Gutenberg Block: Render Shortcode

0 Answered Questions

How to re-render WordPress Gutenberg block?

1 Answered Questions

0 Answered Questions

How can I dynamically wrap <InnerBlocks /> in a Gutenberg block?

  • 2019-05-10 18:17:31
  • Victor Oliveira
  • 152 View
  • 1 Score
  • 0 Answer
  • Tags:   block-editor

2 Answered Questions

[SOLVED] How To Have Two Gutenberg Editors On One Post?

  • 2019-04-11 14:14:45
  • user9664977
  • 47 View
  • 3 Score
  • 2 Answer
  • Tags:   posts block-editor

1 Answered Questions

[SOLVED] Load script after block is inserted

0 Answered Questions

Modify the core/paragraph block

  • 2019-01-06 15:05:36
  • Michael
  • 518 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
  • 2912 View
  • 8 Score
  • 2 Answer
  • Tags:   block-editor

1 Answered Questions

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

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

Sponsored Content