-
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
Add toggle to hide Post/Page Title #16776
Comments
(We probably can't hide the title because then how do you unhide it? But something to ponder.) |
will hiding it in the editor also hide it in the front-end? |
It would hide it on the front-end of the page/post itself, nowhere else. It would really only act as art direction in the individual post/page context. (Honestly, we might even just want to keep the appearance as-is in the editor and only hide it on the front end.) |
this seems a bit hard to interpolate into the frontend, since many themes uses some uses for this seems like it would fit more as a theme feature and not directly from Gutenberg, at least till there is a much broader support for blocks in the frontend. |
Here are two issues I made some time ago: To me the process seems like this:
Adding in a few more associated issues: |
I have this feature available on my EditorsKit Plugin and here's the preview on how my integration works. I hope this could help. Thanks! |
@phpbits how do you handle this on the frontend? |
@senadir I'm using |
@phpbits how do you handle other uses for |
I wonder if it's not a document setting as opposed to having to fake a block? |
@karmatosed Should there be a hide title checkbox in the Document sidebar? I didn't see one or otherwise understand how the title would be hidden based on the mockup in #16776 (comment). |
Ah eep @nickcernis, I had uploaded wrong image and thank you for spotting that! All fixed now. |
Once the title is hidden in the content area, it could still show up in the document sidebar where folks could still modify it? |
Ideally, a piece of content is a block. A block can be added or removed from any post/page. If there is information necessary for the post/page to exist, that information should reside in the Document settings sidebar. Because there are explorations around a Title block happening, I'd like to close this issue. |
For now I'm using this code (with ACF). It just immediately removes the element from the DOM. I'm only interested in this if it's a page, hence the
|
I know
the_title()
isn't a block yet, but it would still be great to have a toggle to turn it off on posts/pages — maybe even the whole header, in case there's also post meta.Quick idea:
The text was updated successfully, but these errors were encountered: