Skip to content

Add Block: Title #11553

Closed
Closed

Description

@DevOnWheels

Hey, this is just a question/ idea:
I tried to insert HTML in my posts title. It does work, but the HTML is actually written out in the edit field of the title. This looks awkward. Is there any possibility to interpret the HTML in post titles in the same way as in the rest of Gutenberg. Like some kind of a "post title block"?

Reason for the question is that I would like to have overlines in my h1 tag without using ACF for that purpose. If this tracker is not the place for ideas/ enhancements, just drop me a note and close the ticket :)

Best regards, Matt

Activity

  1. designsimply commented on Nov 6, 2018

    @designsimply
    Member

    Great question! There's some related discussion in #8469 where it is mentioned in the comments that future plans include making the title area into a block which likely means you would be able to add HTML to it. I checked the New Block label and didn't see one made for that specifically though, so I'm updating the title here so we can use this request for tracking. Thanks for raising the issue!

  2. changed the title [-]HTML in post title[/-] [+]Add Block: Title[/+] on Nov 6, 2018
  3. added
    New Block
    Needs Dev
    on Nov 6, 2018
  4. designsimply commented on Nov 6, 2018

    @designsimply
    Member

    Related: #8824 (and noting a kicker block may not be needed if title becomes a block that can be reordered within a post)

  5. designsimply commented on Nov 6, 2018

    @designsimply
    Member

    Noting another relevant quote about title (and other things) eventually becoming blocks:

    Eventually, the title, the date, the author, etc, will all just be blocks you can place in whatever order around the content.

    Source: #4482 (comment) (worth noting this one is in the "To Do in Phase 2" project)

  6. mapk commented on Jan 7, 2019

    @mapk
    Contributor

    I'd really like to see the title block come to fruition in Phase 2. I'll add it to the milestone. We'll need some design input on this though... for instance, where does the meta info that the title provided go?

  7. added this to the Future: Phase 2 milestone on Jan 7, 2019
  8. added
    Needs Design
    on Jan 7, 2019
  9. DevOnWheels commented on Jan 8, 2019

    @DevOnWheels
    Author

    I'd really like to see the title block come to fruition in Phase 2. I'll add it to the milestone. We'll need some design input on this though... for instance, where does the meta info that the title provided go?

    @mapk what exactly do you mean by "meta info that the title provided"? Happy to help :)

  10. mapk commented on Jan 8, 2019

    @mapk
    Contributor

    what exactly do you mean by "meta info that the title provided"? Happy to help :)

    The permalink is what I mean here. It comes from the Title.

    screen shot 2019-01-08 at 2 38 02 pm

    Would the Title block still incorporate the permalink info as it does now? Would that move to the sidebar? Just some things to consider. If there is not Title Block, what happens?

  11. DevOnWheels commented on Jan 11, 2019

    @DevOnWheels
    Author

    Yes, the current place is the "correct" one, I would say. A few thoughts on the "title block" here:
    The block should be available only once, so there cannot be confusion between different titles. Additionally I would like to have a field for a "working title" so that I can have a short title in my admin lists, but a long title with HTML etc. in the title block. For example "This is my super awesome frontpage! Check it out!" in the block, but only "Static Frontpage" in the page list. And for these reasons I would like to have the settings directly at the block.

  12. mapk commented on Jan 11, 2019

    @mapk
    Contributor

    The block should be available only once, so there cannot be confusion between different titles.

    Definitely possible. But what if the user doesn't want a title block on their page? Then how do we define the URI?

  13. DevOnWheels commented on Jan 11, 2019

    @DevOnWheels
    Author

    Good question. This would be a reason to exclude the settings to the options bar of the document. On the other hand, I really get headache about the fact that an article wouldn't have a title, but that's a SEO problem and not related to this issue.

  14. 29 remaining items

  15. CreativeDive commented on Aug 26, 2019

    @CreativeDive
    Contributor

    In reference to my feature request, 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?

    Always the first position of the block.

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

    Restricting the multiple use of blocks.

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

    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.

    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.

  16. added
    Needs Design Feedback
    and removed
    Needs Design
    on Sep 10, 2019
  17. sarahmonster commented on Sep 10, 2019

    @sarahmonster
    Member

    @CreativeDive It sounds like what you're looking for should be possible once the title is a block (since you could hide it or move it around on the page).

    Logo and site navigation are things that are being worked on in the context of whole-site layouts, but since they're site elements, rather than page elements, you probably wouldn't want them included in a page block like this. Your theme could definitely adjust their positioning so they say on top of a header block though. This "sticky" option is something we've been investigating with respect to the navigation menu block (see #16830).

    I wouldn't advocate for adding this much complexity to the core title block itself though, since it would be better provided for by either a custom-developed block via a plugin, or an existing block (the cover block comes to mind).

  18. joyously commented on Feb 4, 2020

    @joyously

    I see this issue has strayed far from the original report, which is about showing the title with the HTML interpreted instead of visible. But showing visible HTML makes it clear to the user that the title actually contains other characters which will affect the user's search and any sorting done by title. It is a big change that should not be taken lightly.
    Themes and core already treat the title differently than other fields, since it can contain HTML that should be interpreted as HTML when output. The user needs to understand that the title is different.

  19. karmatosed commented on Mar 10, 2020

    @karmatosed
    Member

    There has been a little bit of time passed since this issue. I wanted to call attention to the work going on in full site editing that makes all content blocks. With this happening, I think the need for this to be done apart from that might not be the case.

    However, it could be great to have some feedback on what examples of HTML are wanted in the title itself.

  20. removed
    Needs Design Feedback
    on Mar 10, 2020
  21. paaljoachim commented on May 26, 2020

    @paaljoachim
    Contributor

    I went ahead and made a new issue in relation to the Block: Title. To give it some more breathing room. #22621

  22. karmatosed commented on May 26, 2020

    @karmatosed
    Member

    @paaljoachim I am not sure if opening a second one when this is still open doesn't distract. Could you perhaps outline why and consider closing this one?

  23. joyously commented on May 26, 2020

    @joyously

    Yes, it seems odd to split the conversation.

  24. paaljoachim commented on May 26, 2020

    @paaljoachim
    Contributor

    This issue contains a long history of various conversations such as should we move the title to the top bar area. (Full Site Editing has added the title to the top bar.) It is a lot easier to start fresh focusing directly on adding a block title, and keeping this as the history issue. Keeping the fresh issue open and closing this issue. It is also easier getting feedback on a short issue compared to one that is very long.

  25. paaljoachim commented on May 26, 2020

    @paaljoachim
    Contributor

    I will go ahead and close this Block: Title issue containing a lot of history.
    Lets keep the focus fresh in #22621
    We can always relate back to specific comments here if/when needed.

  26. joyously commented on May 27, 2020

    @joyously

    @paaljoachim the other problem with creating another issue is that the people that commented on the old issue no longer get notified, so you actually reduce the exposure.

  27. paaljoachim commented on May 27, 2020

    @paaljoachim
    Contributor

    People who subscribe to this issue will have also seen the various sent lately messages. I just want to make it easier to handle. A short issue is a lot easier to handle then a long. If important information shows up in the new issue I could always add it to this history issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DevNew Block

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions