## header/ ### Overview The standard _header.php_ file in Carrington is set up to call the `cfct_header()` function, which will choose the appropriate header file from this directory - based on the context of the given page. This can be useful if you want to have pages to have a custom header, or perhaps a certain category to have a custom header. A "default" template is required, and will be used when there are no other templates that match a given context. This could be because no other templates have been created, or because the context doesn't match the templates that are available. ### Supported Override Filenames - header-default.php (or default.php) - archive.php - author.php - author-{username}.php - category.php - cat-{slug}.php - home.php - page.php - role-{rolename}.php - search.php - single.php - tag.php - tag-{slug}.php ### File Descriptions Standard context file naming will work for files in this directory. Here are some specific examples. - *header-default.php* - Used when there are no other templates that match for a given page/post. - *author-{username}.php* - Used when the post/page is authored by a specific user. For example, a template with a file name of _author-jsmith.php_ would be used for a post/page by user _jsmith_. Any WordPress username can take the place of {username} in the file name. - *cat-{slug}.php* - Used when a post is in a given category. The category is matched by the "slug" - for example a post in category "General" (with a category slug of "general") could use a template of _cat-general.php_. - *home.php* - Used for the home page. - *page.php* - Used for pages that do not match any other contextual templates.