Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the buttons for previous and next in mkdocs?

Tags:

layout

mkdocs

I am trying to remove these buttons labeled "Previous" and "Next" in mkdocs:

buttons to remove

I have read the docs and searched the web but haven't found anything other than some GitHub issues like:

  • Remove prev next from navigation · Issue #946 · mkdocs/mkdocs

How to remove the buttons in a not so hacky way?

like image 851
Chris Bolton Avatar asked Oct 28 '25 03:10

Chris Bolton


1 Answers

I would do this using CSS to hide it by adding into the included css. In the material theme it will be:

md-footer__inner { display: none }

This should be within the css which is included as extra_css in the mkdocs.yml.

like image 82
Alinex Avatar answered Oct 30 '25 16:10

Alinex