Create the header and footer
The header and footer of your theme are universal and encapsulated, which means that they apply not only to the storefront, but to the entire AppDirect user interface—including administration pages. Because of this, some special rules apply:
- HTML and CSS are encapsulated—Every rule is encapsulated post processing, and you cannot use any styles that come from your base theme.
- The header and footer have their own components—You cannot modify these components, but you can style them using CSS classes.
- Only use HTML, CSS, or JavaScript—Template utilities (macros, filters, and so on) are not available.
See the Manage headers and footers video for a quick overview of the unique templating system for headers and footers, and how to customize them.
Use caution when modifying header or footer position or display properties, because such changes can interact with page elements across the platform beyond the storefront, such as login modals, in unexpected ways. Ensure that you test your changes thoroughly.
HTML theme files
The header and footer are a series of HTML files in your theme. After you open your project in a text editor, the following templates are available for the header and footer in themes/_themeName_/header-footer
:
logged-out.html
—The header shown when the user is not logged in to the marketplace.logged-in.html
—The header shown when the user is logged in to the marketplace.checkout.html