Header·shopify

Free Shopify Capsule Header Section

Create a premium, modern Capsule Header for your Shopify Dawn theme store — completely free. This custom header replaces Dawn's default header with a fixed, scroll-aware navigation bar that transforms into a floating rounded capsule (pill shape) when the user scrolls down, with a smooth cubic-bezier animation. Includes dual logo support (dark logo for light backgrounds and scrolled state, light logo for transparent mode over hero images), multi-level dropdown menus with nested submenus (parent → child → grandchild), search, account, and cart icons with a live cart count bubble, and a full mobile slide-in drawer with accordion submenus. Choose transparent header behavior (none, home page only, or all pages), toggle each icon independently, pick a color scheme, and fine-tune header padding. Automatically adjusts main content padding so your content never hides behind the fixed header, and stays compatible with Dawn's cart update events. Fully responsive, reduced-motion friendly, and built with accessibility labels. Built specifically for the Shopify Dawn theme — just copy and paste the Liquid code into a new section file and assign it to the Header section group, and it works instantly. If you use a different Shopify theme, simply replace the 'page-width' container class with your own theme's container class and it will adapt to your theme's existing container spacing. Perfect for premium fashion stores, minimal brand sites, portfolio shops, and modern eCommerce stores that want a distinctive floating header. Includes lazy-loaded logos, smooth scroll animations, nested navigation, and mobile drawer. No paid apps required.

languageliquid
fileshopify-capsule-header-section.liquid
lines875
#shopifycapsuleheadersection#shopifycustomheadersection#shopifydawnthemeheader#dawnthemecustomheader#shopifytransparentheadersection#shopifystickyheadersection#shopifyfloatingheadersection#freeshopifysection#shopifypremiumheadersection#shopifypillheadersection#shopifyscrollheaderanimation#shopifymultilevelmenuheader#shopifymegamenuheadersection#shopifymobiledrawermenu#shopifyliquidcode#customizableshopifysection#shopifyheaderwithnestedsubmenu#dawnthemefreesection#shopifyduallogoheader#freedawnthemeliquidcode

source

The full code

shopify-capsule-header-section.liquid
locked
1{% style %}
2/* =========================================
3 ART HEADER (Premium & Capsule)
4 ========================================= */
5
6.art-header {
7position: fixed;
8top: 0;
9left: 0;
10width: 100%;
11z-index: 100;
12transition: transform 0.4s ease, background-color 0.4s ease;
13}
14
15/* Default Solid State (White bg, Black text) */
16.art-header {
17--header-bg: #ffffff;
18--header-text: #000000; /* FIXED: Changed from white to black */
19--header-shadow: 0 2px 10px rgba(0,0,0,0.05);
20}

Unlock the full code

Enter your name & email to reveal 855 more lines

● liquid20/875 lines

Want sections like these built for you?

Custom Shopify themes, sections, and apps tailored to your brand.

hire me→