Hide navigation elements
Hide pages
To hide a page from navigation while keeping it accessible via URL, sethidden: true in the page’s frontmatter or remove it from your docs.json navigation.
Hidden pages are automatically excluded from search engines, sitemaps, and AI context. See Hidden pages for more information.
Hide groups
To hide an entire group of pages, set thehidden property to true for the group in your docs.json file:
Hide tabs
To hide a tab from the navigation bar, add thehidden property to the tab in your docs.json file:
Hide anchors, dropdowns, and products
Thehidden property works consistently across all navigation elements. Add hidden: true to any anchor, dropdown, or product to hide it from navigation:
Control sidebar visibility on specific pages
Use page layout modes to control sidebar visibility on individual pages.Hide sidebar and table of contents
Usecenter mode to remove both the sidebar and table of contents:
Center mode is supported by Mint and Linden themes.
Hide table of contents only
Usewide mode to hide the table of contents while keeping the sidebar:
Hide all navigation elements
Usecustom mode to create a minimal layout with only the top navbar:
Keep sidebar, hide table of contents
Useframe mode to preserve sidebar navigation while removing the table of contents:
Frame mode is supported by Aspen and Almond themes only.
Hide API documentation sections
Hide specific endpoints
For OpenAPI-generated documentation, use thex-hidden extension to hide specific endpoints from navigation while keeping them accessible via direct URL:
Exclude endpoints completely
Use thex-excluded extension to completely exclude an endpoint from your documentation:
Hide UI components with custom CSS
Use custom CSS to hide specific UI components. Create a CSS file in your documentation repository to apply custom styles globally.Common UI elements to hide
Mintlify provides identifiers and selectors for common UI elements. Use these to target specific components:style.css
Hide API sections
Target specific API documentation sections using CSS selectors:style.css
Available identifiers and selectors
Common identifiers
Common identifiers
- APIPlaygroundInput:
api-playground-input - Banner:
banner - BodyContent:
body-content - ContentArea:
content-area - ContentContainer:
content-container - FeedbackForm:
feedback-form - Footer:
footer - Header:
header - Navbar:
navbar - Pagination:
pagination - RequestExample:
request-example - ResponseExample:
response-example - SearchInput:
search-input - Sidebar:
sidebar - SidebarContent:
sidebar-content - TableOfContents:
table-of-contents
Common selectors
Common selectors
- APISection:
api-section - APISectionHeading:
api-section-heading - APISectionHeadingSubtitle:
api-section-heading-subtitle - APISectionHeadingTitle:
api-section-heading-title - Anchor:
nav-anchor - Anchors:
nav-anchors - DropdownTrigger:
nav-dropdown-trigger - DropdownContent:
nav-dropdown-content - FeedbackToolbar:
feedback-toolbar - Logo:
nav-logo - NavBarLink:
navbar-link - SidebarGroup:
sidebar-group - SidebarGroupHeader:
sidebar-group-header - TabsBar:
nav-tabs - TabsBarItem:
nav-tabs-item
Hide the Mintlify badge
The “Powered by Mintlify” badge is removed automatically on paid plans. If you’re on a paid plan and still see the badge, contact support@mintlify.com. For users on free plans, the badge is required and cannot be hidden.Best practices
When hiding UI elements, consider these best practices:- Maintain accessibility: Ensure users can still navigate your documentation effectively after hiding elements.
- Test thoroughly: Verify that hiding elements doesn’t break functionality or create layout issues.
- Use built-in options first: Prefer using
hiddenproperties and page modes over custom CSS when possible. - Document your changes: Keep track of which elements you’ve hidden and why.
- Consider user experience: Only hide elements that genuinely improve the user experience.
Related resources
- Hidden pages - Hide pages from navigation
- Navigation - Configure navigation structure
- Page mode - Control page layouts
- Custom scripts - Add custom CSS and JavaScript
- Manage page visibility - Control API endpoint visibility