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

Ability to show/hide Table of Contents & Block Navigation buttons in Header Toolbar #16174

Closed
desaiuditd opened this issue Jun 14, 2019 · 2 comments
Labels
[Feature] Document Outline An option that outlines content based on a title and headings used in the post/page [Feature] Extensibility The ability to extend blocks or the editing experience [Feature] List View Menu item in the top toolbar to select blocks from a list of links. General Interface Parts of the UI which don't fall neatly under other labels.

Comments

@desaiuditd
Copy link
Member

desaiuditd commented Jun 14, 2019

Is your feature request related to a problem? Please describe.

Currently there's no way I can hide 2 of the items from the top header toolbar i.e., Table of Contents and Block Navigations.

Screen Shot 2019-06-14 at 15 21 16

Neither there's a UI setting for this nor this is possible via code. Because, The <HeaderToolbar /> component simply renders both the components without any consideration of settings or any filters that we can use as a developer to show/hide those items.

https://github.com/WordPress/gutenberg/blob/master/packages/edit-post/src/components/header/header-toolbar/index.js#L41

As a user, I may not want to have those buttons always present on the screen.

Describe the solution you'd like
Couple of approaches I can think of at the moment:

  • Maybe some hooks/filters/config in the code so that those buttons can be toggles programmatically via code.
  • A UI setting to toggle the visibility of those buttons in the Options modal.

Screen Shot 2019-06-14 at 15 21 30

@gziolo
Copy link
Member

gziolo commented Jun 14, 2019

Noting that with #14956 Document Outline and Block Navigation should get merged into one popover. It won't solve the issue you described but might simplify the proposed solution. It might be as simple as adding one item in the General section.

@gziolo gziolo added [Feature] Extensibility The ability to extend blocks or the editing experience General Interface Parts of the UI which don't fall neatly under other labels. [Feature] Document Outline An option that outlines content based on a title and headings used in the post/page [Feature] List View Menu item in the top toolbar to select blocks from a list of links. labels Jun 14, 2019
@priethor
Copy link
Contributor

priethor commented Nov 9, 2022

This issue is superseded by #44193

@priethor priethor closed this as completed Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Document Outline An option that outlines content based on a title and headings used in the post/page [Feature] Extensibility The ability to extend blocks or the editing experience [Feature] List View Menu item in the top toolbar to select blocks from a list of links. General Interface Parts of the UI which don't fall neatly under other labels.
Projects
None yet
Development

No branches or pull requests

3 participants