Hiding navigation elements
Hide pages
Hide individual pages from navigation while keeping them accessible via direct URL. Hidden pages are useful for content you want to reference or link to, but don’t want listed in your navigation.Hidden pages are automatically excluded from search engines, sitemaps, and AI context. See Hidden pages for complete details.
hidden: true in frontmatter
Add hidden: true to a page’s frontmatter to remove it from navigation while keeping it in your docs.json:
docs.json navigation structure. The page file can remain in your repository but won’t appear in navigation.
Hide groups
Hide entire groups of pages by setting thehidden property in your docs.json:
Hide tabs
Hide tabs from your navigation by adding thehidden property:
Hide anchors and dropdowns
Thehidden property works consistently across all navigation elements:
Hiding API documentation sections
Hide specific API endpoints
For OpenAPI-generated documentation, control which endpoints appear using thex-hidden and x-excluded extensions in your OpenAPI specification.
x-hidden: Create page but hide from navigation
The endpoint page exists and is accessible via direct URL, but doesn’t appear in navigation:
x-excluded: Completely exclude from documentation
The endpoint is not documented at all:
x-hidden: Beta features, internal-only endpoints you want to document, endpoints for specific usersx-excluded: Deprecated endpoints, truly internal APIs, endpoints not ready for documentation
Control which endpoints are generated
When using OpenAPI specifications, explicitly list which endpoints to include in your navigation:pages array, Mintlify automatically generates pages for all endpoints in your specification.
Hiding UI components with custom CSS
Use custom CSS to hide specific UI elements across your documentation. Create astyle.css file in your repository to apply custom styles.
Hide the sidebar on specific pages
Hide the table of contents
Hide navigation elements
Common UI element selectors
Mintlify provides identifiers and selectors for common UI elements:Navigation identifiers
Navigation identifiers
Content identifiers
Content identifiers
#header- Page header#footer- Page footer#content-area- Main content area#body-content- Page body content#page-title- Page title element.eyebrow- Breadcrumb/section eyebrow#pagination- Page navigation (prev/next)
API playground identifiers
API playground identifiers
.api-section- API documentation sections.api-section-heading- API section headings.api-playground-input- API playground input fields.request-example- Request example sections.response-example- Response example sections.tryit-button- “Try it” buttons
Example: Hide sidebar on landing page
Create astyle.css file in your repository:
Hiding the Mintlify badge
The “Powered by Mintlify” badge appears in the footer on free plans. This badge is automatically removed on paid plans (Pro and Enterprise). To remove the badge:- Upgrade to a Pro or Enterprise plan
- The badge will be automatically hidden from your documentation
The badge cannot be hidden on free plans through CSS or configuration. It is a platform feature that distinguishes paid plans.
Controlling visibility by user group
For authenticated documentation, show or hide content based on user groups using frontmatter:Best practices
When to hide vs. exclude
When to hide vs. exclude
- Hide (
hidden: trueorx-hidden): Content exists and is accessible via URL, useful for linking or direct access - Exclude (remove from navigation or
x-excluded): Content should not be accessible at all
SEO considerations
SEO considerations
- Hidden pages are automatically excluded from search engines and sitemaps
- Use
noindex: truein frontmatter to exclude from search engines while keeping in navigation - Hidden pages are not included in AI assistant context by default
Navigation organization
Navigation organization
Custom CSS caution
Custom CSS caution
- Test custom CSS across different themes and screen sizes
- Avoid hiding critical navigation elements that users need
- Document your custom CSS for future maintenance
- Be aware that platform updates may affect custom selectors
Related resources
- Hidden pages - Complete guide to hiding pages from navigation
- Navigation - Configure your documentation structure
- Custom scripts - Add custom CSS and JavaScript
- Manage page visibility - Control API endpoint visibility
- Authentication setup - Set up group-based access control