The {{HeaderImage}} directive specifies the full-width hero image displayed at the top of an article above the title.
Syntax
Reference an uploaded file article by its slug:
{{HeaderImage slug-of-file-article}}
or explicitly using the file: namespace prefix:
{{HeaderImage file:slug-of-file-article}}
Focus
The hero frame is wider than most photos on large screens, so part of the image is cropped. By default the top stays in view and the bottom is cut. Add Focus to keep a different part in view:
{{HeaderImage file:slug-of-file-article |#| Focus=center}}
top(default): keeps the top edge; crops from the bottom.center(orcentre): keeps the middle; crops top and bottom equally.bottom: keeps the bottom edge; crops from the top.
Other values are ignored and the default applies.
Rules and Resolution
- Target Article: The slug must correspond to an existing
Filearticle (ArticleType.File) that has an active canonical file revision. - Prefix Handling: The
file:prefix is optional and is stripped during database lookup. - Site and Culture Matching: The file article must exist in the same site and culture as the current article.
- First Resolved Image Wins: The first valid, resolved header image becomes the page hero. If the referenced file cannot be found, no hero image is rendered.
- Uploads: To upload a new image to use as a header, visit the Media Uploader.
Example
{{HeaderImage file:byte-volume-1-issue-1-september-1975-cover}}
{{Eyebrow MAGAZINEISSUE}}
{{Subtitle Volume 1, Issue 1}}
# BYTE - September 1975
Return to the Formatting Guide.
Published on: 25 October 2026 17:47