headers_and_footers.rst 1.1 KB

12345678910111213141516171819
  1. Create header and footer overrides
  2. ==================================
  3. You are new to CodeRedCMS/Wagtail, but you want to get up and running quickly...
  4. It isn't immediately obvious how to edit the header and a footer hasn't been created yet.
  5. A header snippet is created and inserted for you by CodeRedCMS automatically, which is a nice thing that a vanilla Wagtail installation does not have.
  6. Customizing the stock navbar can be accomplished by baked in conventional override.
  7. You will need to add a file into the **templates\coderedcms\snippets** directory. You will likely need to create the aforementioned snippets directory.
  8. Into that directory you will create a file called "navbar.html" . This file will be used instead of the navbar.html file of the CodeRedCMS pip package.
  9. It is advisable to initially use the contents of `CodeRedCMS - Master Branch - navbar.html <https://github.com/coderedcorp/coderedcms/blob/master/coderedcms/templates/coderedcms/snippets/navbar.html>`_ .
  10. ...Advisable, but not necessary.
  11. For the footer, you can add a footer snippet via the built in GUI admin interface under **Snippets > Footer**