-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Will the title be a block (movable)? #7359
Comments
Thank you. Does anyone know if it's already established (or if there are any predictions) how this will be achieved? Is there any workaround for this for now? So far I had a "Content before the title" textarea in a meta box where a shortcode could be inserted but now this shortcode is a block. I guess my present workaround is the best that can be done for now? |
@leahkoerper is correct. That's on the roadmap for v2. Once gutenberg controls areas beyond the post_content the title would be just another block (together with post date, author byline, etc). Themes would likely start using another function like If you want to achieve something similarly now, you'd just configure your theme to not output a title and include a block for it instead. You'd then include the title block for any new post as part of the default template. I'm not sure I would recommend this, though, unless you are comfortable making any necessary updates once v2 is in progress and taking on that overhead. A good example might be the Google/AMP travel demo: https://amp-travel.xwp.io/ |
I want to position a block above the title but it's not movable.
So, I'm doing this bad workaround for now: (1) disable rendering of one block and (2) render it above the title via
do_action( 'place_before_the_title' )
. Not nice.Related features that could help:
Possible alternative solution
Make
core/title
block which, when inserted, would disablethe_title()
's output and print it in the place of the block. (But really this is also a bad workaround and a movable title block would be better.)(Also this is a common use case to disable the title completely which is achievable only using meta boxes now.)
The text was updated successfully, but these errors were encountered: