Etch component
Subheader 1
Thin bar above the header with contact links, account links that follow the login state, and social icons. Contacts hide on tablets and phones. Each part is a slot with sample content to replace.
Documentation
A thin bar above the header, with contact links on the left and account links and social icons on the right. The account links follow the login state.
How to use it
- Put it in MAC Header 1's
subheaderslot. - The entry's Copy JSON brings sample content in its three slots, all list items, to replace:
contact(MAC CTA 2 links with the icon at the start, such asmailto:andtel:),accountandsocial(MAC Icon 1 links with labels). A slot left empty shows nothing.
Good to know
- Visitors see Log In, which points to
/auth/login/, so change it to the site's login page. Logged-in users see Account, and those who can edit posts also Admin. Etch conditions on the login state do this, so keep them when replacing the sample. - There's no Log Out link, because Etch has no logout address with its security token.
- Up to 992px wide the contacts hide, and the account links and icons spread across the bar.
- Its content stays within the site's content width (
--content-width), so on wide screens it lines up with the header's logo and links. - In MAC Header 1 it takes the header's look: a full-width band with Bar, the default, and a box of its own above the bar with the Floating recipe. The header's Sticky Subheader keeps it in view as the page scrolls, and its Subheader hidden on mobile recipe hides it up to 992px wide.