How to customize the header and footer on the dashboard page


#1

You can replace the navigation links at the top, and the disclaimer at the bottom, by adding a couple more environment variables:

  • DASHBOARD_HEADER_HTML: For example, put in <a class="header-link" href="//example.com">My Home</a> (links use a tags, while the selected link, which is “Dashboard” in the default nav bar, uses a b tag with the same class)

  • DASHBOARD_FOOTER_HTML: For example, put in This site is only for authorized employees of Example Inc.

On Heroku, you can go into the Settings tab under your app to add these env variables.


This post is a wiki, so you should be able to edit it if there’s some step that got skipped over or described wrong.


#2

Thanks, @couchand, for implementing this.


#3

Glad to help! Thanks for all your hard work on this project @notriddle!