Skip to content
Discussion options

You must be logged in to vote

This functionality is not implemented in the theme, as straightforwardly as hiding navigation or the toc.
However, you can add your own CSS to hide the elements: https://squidfunk.github.io/mkdocs-material/customization/#additional-css
But instead of adding the extra.css file to the mkdocs.yml file you can add a <link rel="stylesheet" href="/stylesheets/extra.css"> tag to your Markdown page. When setting the href please mind the absolute path with / at the beginning or /repository-name/ for GitHub pages.

To hide the search input with CSS you can use this:

.md-search {
  display: none;
}

Instead of display: none;, visibility: hidden; can also be used, with a different behaviour.


Another a…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kamilkrzyskow
Comment options

@nicfv
Comment options

@kamilkrzyskow
Comment options

Answer selected by nicfv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants