How to hide the header 1 title of a specific page? #6185
-
Hi mkdocs-material, I want to hide the first-level title "Home" in the screenshot below. But if i remove "# Home" a new title appear with the name of file. Is there any way to do it? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The discussion contains an approach that should work: #2163 If you need this behavior on many pages then there are probably more elegant solutions such as creating a custom page template or putting the CSS into an |
Beta Was this translation helpful? Give feedback.
-
The inline css approach has a major pitfall, some how it removes/hides the version selection drop down also. |
Beta Was this translation helpful? Give feedback.
-
Let me share a solution I used to hide the first-level header on the home page.
|
Beta Was this translation helpful? Give feedback.
Let me share a solution I used to hide the first-level header on the home page.
material/overrides/home.html
, create a template calledoverrides/home.html
with the following content: