= Interface Customization using site_*.html files This page collects useful snippets for inclusion in a project `site_head.html`, `site_header.html` and `site_footer.html` files. == Quicksearch for tickets only When no search filters are provided, Trac searches using all filters. This snippets adds a filter to the quicksearch that restricts searches to tickets only by default using `site_header.html`. More can of course be added by user after initial search: {{{ #!xml }}} == Add licensing information when adding attachments If adding attachments to your Trac site requires people to agree to some licensing terms, you can add the terms of the license on the "Add attachments" page using `site_head.html` as follows: {{{#!html+jinja {% raw %}{% endraw %} }}} Another approach is inserting content to the buttons of the attachment form using CSS: {{{#!html+jinja {% raw %}{% endraw %} }}} == Rename Roadmap header If your team would prefer to see a different title instead of Roadmap, add the following code to your `site_head.html` and restart the server. Don't forget to edit trac.ini to [TracNavigation change the link title]. {{{#!html+jinja # if req.path_info == '/roadmap': # endif }}} == Replace footer If you want to change the default footer, add the following code to your `site_head.html`. This snippet strips out the current one and puts in my own. {{{#!html+jinja {% raw %}{% endraw %} }}}