Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header Block + Move blocks before the "Page Title" and other possibilities #17190

Closed
CreativeDive opened this issue Aug 26, 2019 · 3 comments
Closed
Labels
[Feature] Blocks Overall functionality of blocks [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Question Questions about the design or development of the editor.

Comments

@CreativeDive
Copy link
Contributor

CreativeDive commented Aug 26, 2019

Creating custom blocks is awesome with the new block editor.

BUT, are there any considerations for the following?

What can we do, if we want to add a custom "Header", which appears above the "Entry Page Title" and the possibility to edit the "Header" like a block inside the block editor?

Which conditions must be fulfilled in the example for a header block?

  1. Always the first position of the block.

--> The block should be positioned above the "Entry Page Title".

  1. Restricting the multiple use of blocks.

--> The block should only be used once without the option to "duplicate" it or add it several times.

  1. Restricting the moving of blocks.

--> The header block should not be movable.

What will the future bring?

Is there a plan about this point in the future?

It would make the editor even better.

@CreativeDive
Copy link
Contributor Author

This is only an example for a full page header, which is overlaid from the site logo and the site navigation.

header

At this time there is no possibility to add custom headers like this in a user friendly way inside the block editor.

@CreativeDive CreativeDive changed the title Move blocks before the "Page Title" and other possibilities Header Block + Move blocks before the "Page Title" and other possibilities Aug 26, 2019
@swissspidy swissspidy added [Type] Question Questions about the design or development of the editor. [Feature] Blocks Overall functionality of blocks labels Aug 26, 2019
@swissspidy
Copy link
Member

There are plans to support this, for example by making the title field an actual block that can be moved.

You can follow #11553 for any progress on this.

@swissspidy swissspidy added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Aug 26, 2019
@epiqueras
Copy link
Contributor

Hi @CreativeDive 👋, this is well on it's way to being done, but we don't have documentation for it yet.

Here are the related PRs in case you want to get a "preview" by piecing them together:

Prototype: #16565

Required Refactoring PRs: https://github.com/WordPress/gutenberg/pulls?q=is%3Apr+author%3Aepiqueras+is%3Aclosed+project%3AWordPress%2Fgutenberg%2F13

New Feature PRs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Question Questions about the design or development of the editor.
Projects
None yet
Development

No branches or pull requests

3 participants