Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/how_to/headers_and_footers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Create header and footer overrides
==================================

You are new to CodeRedCMS/Wagtail, but you want to get up and running quickly...

It isn't immediately obvious how to edit the header and a footer hasn't been created yet.

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.

Customizing the stock navbar can be accomplished by baked in conventional override.

You will need to add a file into the **templates\coderedcms\snippets** directory. You will likely need to create the aforementioned snippets directory.

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.

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>`_ .
...Advisable, but not necessary.

For the footer, you can add a footer snippet via the built in GUI admin interface under **Snippets > Footer**
1 change: 1 addition & 0 deletions docs/how_to/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ with CodeRed CMS.
.. toctree::
:maxdepth: 1

headers_and_footers
link_targets
translation