Skip to content
Discussion options

You must be logged in to vote

You don't need to define a custom template because the code I posted contains a conditional that checks the page header for each page rendered. Copy the actions.html from your Material install (or from here - assuming you use the latest version of Material) over to your partials directory.

Then add the conditional into this. The first line in the code snippet I posted is already in the file, I posted that to show where the second line goes that tests the page header. Don't forget to close the conditional at the end with {% endif %}.

If you want to learn how to modify the templates and partials, the place to look is the Jinja documentation. It also helps to have a good look at the template…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

alexvoss
Mar 29, 2024
Collaborator Sponsor

You must be logged in to vote
3 replies
@W1ndys
Comment options

@alexvoss
Comment options

alexvoss Mar 29, 2024
Collaborator Sponsor

Answer selected by W1ndys
@alexvoss
Comment options

alexvoss Mar 29, 2024
Collaborator Sponsor

Comment options

You must be logged in to vote
2 replies
@alexvoss
Comment options

alexvoss Mar 30, 2024
Collaborator Sponsor

@W1ndys
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants