Skip to main content

Customize the admin header and footer

The header and footer of your theme are universal and encapsulated, which means that they apply to all the 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.

caution

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---The header shown when the user is in the checkout flow. Note that only the logo of your marketplace appears.
  • sso.html---The header shown when in any authorization flow (for example, logging in or two-factor authentication). Note that only the logo of your marketplace appears.
  • footer.html---The footer shown on all pages in the marketplace.
tip

You can add a font file (it must be named header.woff) to your header-footer directory at themes/themeName/header-footer to customize the font of your header and footer.

The following code is an example of the logged-in.html template, which contains components that use brackets nomenclature, {{componentName}}. These components are internal to the platform. For a full list of available components, see Available header and footer tags.

    <header id="">
<div class="ad-uniheader">
<div class="adb-layout-default">
<div class="ad-uniheader__container">
<nav aria-label="Marketplace Menu" class="ad-uniheader__container--section">
<h2 id="marketplace-menu-label" class="not-visible">Marketplace Menu</h2>
<ul class="ad-uniheader__container--section-left">
{{MPLOGO-COMPONENT}}
{{MYAPPS-DROPDOWN-COMPONENT}}
{{ICON-HOME-COMPONENT}}
{{ICON-APPWISE-COMPONENT}}
{{ICON-APPINSIGHT-COMPONENT}}
{{ICON-MARKETPLACE-COMPONENT}}
</ul>
</nav>

<div aria-label="Universal Search Bar" class="adsearch-universal">{{SEARCH_BOX}}</div>

<nav aria-label="User Menu">
<h2 id="user-menu-label" class="not-visible">User Menu</h2>
<ul class="ad-uniheader__container--section ad-uniheader__container--section-right">
{{COMPANY_DROPDOWN}}
{{MANAGE_DROPDOWN}}
<li class="ad-component_list--item ad-component_dropdown user-dropdown js-primary-nav-user-menu">
<a class="ad-component--link ad-component_dropdown--trigger" href="javascript:;">
{{ICON_USER_IMG}} {{USER_FIRSTNAME}}
</a>
{{USER_LIST}}
</li>
</ul>
</nav>
</div>
</div>
</div>
</header>

CSS theme files

The CSS for the header and footer are located in themes/themeName/header-footer/css. You can either modify the base CSS with the styling in SASS (header-index.scss) or you can create a new one. The header-index.css file is required for API calls.

note

If you do not want to style in SASS, ensure that only the header-index.css file exists in themes/themeName/header-footer/css. Remove the header-index.scss file.

Style HTML components

You can view the HTML structure of the component when it is rendered in the browser. Find each element by inspecting your browser and use your CSS knowledge to style the elements. The following image shows an example of the header structure of the My Profile drop-down component.

You can use the tags listed in this section to customize the storefront header and footer. Because the header and footer are encapsulated and use different components than the rest of the storefront, these tags are only available for the header and footer.

To use the tags listed in this section, add them to any of the files in the themeName/header-footer folder and enclose them in curly braces:

    {{MPLOGO-COMPONENT}}

The rendered output of certain tags depends on user data (roles, permissions, and so on) or marketplace settings.

Components

Components are interactive user interface elements, such as drop-down lists.

ComponentDescription
MPLOGO-COMPONENTThe marketplace logo.
MYAPPS-DROPDOWN-COMPONENTA drop-down list of the products available on the user's MyApps page.
LANGUAGE_DROPDOWNA drop-down list of available languages.
LANGUAGE_SELECTAn HTML select drop-down list of available languages.
WRAPPED_LANGUAGE_SELECTA wrapped HTML select drop-down list of available languages (easier to style than the other language options).
MANAGE_DROPDOWNA drop-down list of management options available to authenticated users.
USER_DROPDOWNA drop-down list of user settings available to authenticated users.
COMPANY_DROPDOWNA drop-down list of companies that the authenticated user can access.
CURRENCY_DROPDOWNA drop-down list of supported marketplace currencies.
MOBILE-MENUA mobile menu with a list of accessible links that only appears on mobile screen resolutions, as determined by the CSS.
ICON-HOME-COMPONENTA Home icon that redirects to the feeds page. The marketplace must have enabled and it must be assigned to the authenticated user.
ICON-APPWISE-COMPONENTA Teams icon that redirects to the teams page.
ICON-APPINSIGHT-COMPONENTAn Insights icon that redirects to . The marketplace must have enabled and it must be assigned to the authenticated user.
ICON-MARKETPLACE-COMPONENTA Marketplace icon that redirects to the storefront home page.

User interface elements

User interface elements are HTML tags that include links, images, and lists.

ElementDescription
ACCOUNT_LINKAn Account link that opens the App Manager home page at marketplaceUrl/account/home.
CHANNEL_LINKA Marketplace link that opens the marketplace setup guide at marketplaceUrl/channel/guide.
COMPANY_LINKA My Company link that opens the authenticated user's company page at marketplaceUrl/companies/companyUuid.
CORPORATE_LINKA Network link that opens the network management page at marketplaceUrl/corporate/home when authenticated. The marketplace must have the Network add-on and the user must have the Corporate Administrator role.
DEVELOPER_LINKA Billing and Distribution or Developer link (depending on the authenticated user's roles) that opens the Developer Center home page at marketplaceUrl/cms/home. The marketplace must have Developer Center enabled and the user must have the Developer role.
HOME_LINKA Marketplace link that opens the marketplace home page at marketplaceUrl/home.
LOGIN_LINKA Log In link that opens the login page at marketplaceUrl/login.
MYAPPS_LINKA My Apps link that opens the authenticated user's My Apps page at marketplaceUrl/myapps.
RESELLER_LINKA Reseller link that opens the home page at marketplaceUrl/reseller when authenticated. The marketplace must have enabled and the user must have the Reseller Manager or Reseller role.
SETTINGS_LINKA My Settings link that opens the authenticated user's settings page at marketplaceUrl/settings.
SIGNUP_LINKA Sign Up link that opens the marketplace sign-up page at marketplaceUrl/signup.
ACCOUNT_LIAn Account list item that opens the App Manager home page at marketplaceUrl/account/home.
CHANNEL_LIA Marketplace list item that opens the marketplace setup guide at marketplaceUrl/channel/guide.
CORPORATE_LIA Network list item that opens the network management page at marketplaceUrl/corporate/home when authenticated. The marketplace must have the Network add-on and the user must have the Corporate Administrator role.
DEVELOPER_LIA Developer or Billing and Distribution list item (depending on the authenticated user's roles) that opens the Developer Center home page at marketplaceUrl/cms/home. The marketplace must have Developer Center enabled and the user must have the Developer role.
RESELLER_LIA Reseller list item that opens the home page at marketplaceUrl/reseller when authenticated. The marketplace must have enabled and the user must have the Reseller Manager or Reseller role.
HOME_LIA Marketplace list item that opens the marketplace home page at marketplaceUrl/home.
LOGIN_LIA Log In list item that opens the login page at marketplaceUrl/login.
LOGOUT_LIA Logout list item that opens the logout page at marketplaceUrl/logout.
MYAPPS_LIto the user's My Apps page at marketplaceUrl/myapps.
SIGNUP_LIA Sign Up list item that opens the marketplace sign-up page at marketplaceUrl/signup.
SUBSCRIPTION_LI???
COMPANY_LIA My Company list item that opens the authenticated user's company page at marketplaceUrl/companies/companyUuid.
PROFILE_LIA My Profile list item that opens the authenticated user's profile page at marketplaceUrl/profile/userUuid.
SETTINGS_LIA My Settings list item that opens the authenticated user's settings page at marketplaceUrl/settings.
SEARCH_FORMA Search text box.
SEARCH_BOXAn search box. See Search with AppWise.
ICON_USER_IMGThe authenticated user's profile image.
LANGUAGE_LINKSA list of supported marketplace languages, which you can click to change the language of the user interface.
USER_LISTList of user management options, suitable to include in a drop-down element.
MANAGE_LINKSLinks to different management pages available to the authenticated user.
COMPANY_LISTList of companies of which the authenticated user is a member, suitable to include in a drop-down element.

Data elements

Data elements render data without any HTML tags. For example, ACCOUNT_HREF renders http://_marketplaceUrl_/account.

ElementDescription
ACCOUNT_HREFHyperlink to the App Manager home page at marketplaceUrl/account/home when authenticated.
CHANNEL_HREFHyperlink to the marketplace setup guide at marketplaceUrl/channel/guide when authenticated.
COMPANY_HREFHyperlink to the authenticated user's company page at marketplaceUrl/companies/companyUuid.
COPYRIGHT_YEARA copyright symbol with the current year.
CORPORATE_HREFHyperlink to the network management page at marketplaceUrl/corporate/home when authenticated. The marketplace must have the Network add-on and the user must have the Corporate Administrator role.
CURRENT_LANGUAGE_TAGThe current marketplace locale in ISO language and country format, for example en-US
CURRENT_LANGUAGEThe current marketplace locale in plain text, for example English (United States)
DEVELOPER_HREFHyperlink to the Developer Center home page at marketplaceUrl/cms/home when authenticated. The marketplace must have Developer Center enabled and the user must have the Developer role.
HOME_HREFHyperlink to the marketplace home page at marketplaceUrl/home.
LOGIN_HREFHyperlink to the login page at marketplaceUrl/login.
LOGOUT_HREFHyperlink to the logout page at marketplaceUrl/logout.
MARKETPLACE_HREFHyperlink to the marketplace home page at marketplaceUrl/locale/home.
MYAPPS_HREFHyperlink to the user's My Apps page at marketplaceUrl/myapps.
PRIVACY_POLICY_URLURL of the marketplace privacy policy page, if configured.
PROFILE_HREFHyperlink to the authenticated user's profile page at marketplaceUrl/profile/userUuid.
RESELLER_HREFHyperlink to the home page at marketplaceUrl/reseller when authenticated. The marketplace must have enabled and the user must have the Reseller Manager or Reseller role.
SETTINGS_HREFHyperlink to the authenticated user's settings page at marketplaceUrl/settings.
SIGNUP_HREFHyperlink to the marketplace sign-up page at marketplaceUrl/signup.
SUPPORT_CONTACT_URLURL of the "Contact Support" page, if configured.
SUPPORT_EMAILSupport email address.
SUPPORT_PHONESupport phone number, if configured.
SUPPORT_URLURL of the support page, if configured.
TERMS_URLURL of the Terms and Conditions page, if configured.
USER_FIRSTNAMEThe authenticated user's first name.
USER_IMGPath to the authenticated user's profile image.

Was this page helpful?