Online store page with the navigation bar fixed at the top of the screen

How to Add a Sticky Header to Shopify: 7 Practical Steps

By the Dropship Stair team. Last reviewed: November 2026.

Key takeaways

  • A sticky header on Shopify is a navigation bar that stays fixed at the top of the screen while a buyer scrolls down the page, so the menu, search, and cart stay within reach.
  • Most Shopify themes include a sticky header setting under Online Store, then Themes, then Customize, then Header, so check there before adding code or an app.
  • Learning how to add a sticky header to Shopify works best when the header stays slim, because a tall fixed header eats screen space on mobile and hides the products buyers came to see.
  • Test speed, layout shift, and the cart and search icons after the change, because a header that jumps, overlaps content, or breaks checkout costs more sales than it saves.

Learning how to add a sticky header to Shopify? Check your theme for a built-in setting. Turn it on. Keep the header slim. Test it on mobile. A sticky header keeps your logo, menu, search, and cart visible while buyers scroll.

What is a sticky header on Shopify?

A sticky header is a navigation bar that stays pinned to the top of the screen while a buyer scrolls down the page. The logo, menu, search icon, and cart icon stay visible the whole time. A buyer never has to scroll back up to navigate or check out.

It helps most on long pages. A product page with a long description. A collection page with dozens of products. The cart stays one tap away, and that matters on mobile, where scrolling back to the top takes several swipes. It hurts when the header is tall. A header with a large logo, an announcement bar, and two rows of links can cover a third of a phone screen, and buyers end up scrolling past products they never see. It also hurts on slow themes, where a heavy header pushes content down after it loads. That jump is called layout shift, and it frustrates buyers. The rule is simple: a sticky header should be short, light, and easy to ignore until it is needed.

How to add a sticky header to Shopify: the 7 steps

Seven steps, in order. The first two take minutes if your theme has the setting. The rest are checks that keep the change from hurting your store.

Step 1: Check whether your theme already has a sticky header setting

In your Shopify admin, go to Online Store, then Themes, then Customize, and open the Header section. Look for a setting called Sticky header, or a behavior option such as Always, or Hide on scroll down. Many free and paid themes include this setting, and it is the safest option, because the theme maker built it to work with the theme layout. See the setting? Use it and skip to step three. Do not see it? Note that and move to step five, where the code and app options live.

Step 2: Turn it on and pick the behavior

Switch the setting on, then pick how the header should behave. Always sticky keeps the header visible at all times, which suits stores with short menus and a small logo. Hide on scroll down, show on scroll up hides the header while the buyer reads, then brings it back with a small upward scroll, which suits long product pages. Some themes also offer a sticky header on desktop only. Pick the behavior that fits your pages, save, and preview the store.

Step 3: Test it on mobile

Open your store on a real phone, or use the mobile preview in the theme editor, and scroll through a product page and a collection page. Check three things. How much screen does the header cover? Does the menu open cleanly? Does the cart icon stay easy to tap? Most Shopify traffic comes from phones, so a header that fails on mobile is a failed header. If the header covers too much space, shrink the logo or hide a menu link before you touch anything else. Our guide to the best free Shopify themes can help if your current theme fights you on mobile layout.

Step 4: Keep the header slim

A sticky header earns its place by staying out of the way. Use a compact logo. Keep the menu to the links buyers actually use. Drop the second row of links if the header needs two lines. Put the announcement bar outside the sticky area when the theme allows it, so a sale banner does not follow buyers down the page. Aim for a header that takes up a small strip at the top, not a block. Logo too wide? Upload a smaller version for the header, or use the logo width control in your theme settings.

Step 5: If the theme lacks the setting, use a small CSS addition or a header app

When no built-in setting exists, you have two paths. The first is a small CSS addition: duplicate your theme, open the code editor, and add a sticky rule to the header in your theme stylesheet. The rule pins the header to the top of the viewport while the rest of the page scrolls. Keep the change small, test it on desktop and mobile, and keep the duplicate theme as a backup until you are sure it works. The second path is a header app from the Shopify App Store, which adds the setting through an app dashboard instead of code. Pick one with clear settings and recent updates. Do not install two header apps at once, because they can fight over the same header and break the layout. If code edits feel risky, the app route is the safer pick.

Step 6: Test page speed and layout shift after the change

A sticky header can cause layout shift, which is when page content jumps after it loads because the header arrives late or changes size. Open your store on a slow connection and watch whether the content below the header moves as the page loads. Run the store through PageSpeed Insights before and after the change and compare the layout shift score. Score worse? The header is likely loading late, too large, or styled by a script that runs after the page paints. Fix it by keeping the header light and setting a fixed height for it. A header that shifts the page on every load will cost you more than it earns.

Step 7: Check the cart and search icons still work while scrolling

Scroll halfway down a product page and tap the cart icon, open search, and open the menu. Each one should work exactly as it does at the top of the page. Test the same on a collection page and on the home page, because some themes only break the sticky behavior on one template. If an icon stops working once the header sticks, the cause is usually a script conflict, and the fix belongs in the theme code or the app settings. Do not call the job done until the cart works mid-scroll, because a sticky header that blocks checkout is worse than no sticky header at all. For a related checkout improvement, read our guide to adding a sticky add-to-cart button to Shopify.

Which sticky header option fits your store?

The right option depends on your theme, your comfort with code, and how much control you need. The table below compares the three common paths.

Option How it works Cost Best for Watch out for
Theme setting Built into the theme editor No extra cost Stores whose theme already includes it Some themes offer only one behavior
CSS addition Small rule added to the theme stylesheet No extra cost Store owners comfortable editing code A wrong selector can break the header layout
Header app App adds sticky controls in a dashboard Cost varies by app Stores that want settings without code Can add scripts that slow the store

Start with the theme setting if your theme has one. Why? It is free, built for your theme, and takes minutes. Use a small CSS addition when you are comfortable editing code and want no extra app weight. Pick a header app only when the theme lacks the setting and code edits feel risky, and remove it if it slows the store down.

What mistakes should you avoid with a sticky header?

Mistake one: a header that is too tall. A logo, an announcement bar, and two rows of links can cover a third of a phone screen, and buyers scroll past products they never see. Shrink the logo, drop the second row, and keep the announcement bar out of the sticky area. Mistake two: skipping the mobile test. A header that looks tidy on desktop can cover half a phone screen, and most of your buyers are on phones.

Mistake three: ignoring layout shift. If the header loads late and pushes the page down, buyers tap the wrong link or lose their place, and the store feels broken. Set a fixed header height and test on a slow connection. Mistake four: adding a heavy app for a job the theme already does. Check the built-in setting first, because an app adds scripts that add load time. For menu structure that pairs well with a slim sticky header, read our guide to adding a mega menu to Shopify.

Frequently asked questions

Does every Shopify theme have a sticky header setting?

No, not every theme includes a sticky header setting. Open Online Store, then Themes, then Customize, and look in the Header section for a sticky option. If your theme has none, add a small CSS rule or use a header app from the Shopify App Store.

Will a sticky header slow down my Shopify store?

A slim sticky header adds almost no load by itself, because it only pins the header in place. Problems start when a heavy app or large header image loads with it. Test your store speed before and after the change, and keep the header light.

How do I make a sticky header on Shopify without an app?

Yes. Open Online Store, then Themes, then Actions, then Edit code, and add a sticky rule to your theme stylesheet, such as position sticky with top zero on the header. Duplicate your theme first so you can roll back. If code edits feel risky, use the built-in theme setting instead.

Can I hide the sticky header on mobile only?

Yes. Most themes let you control the sticky header separately on mobile, often with a setting in the Header section of the theme editor. If your theme lacks that option, a small CSS media query can turn the sticky behavior off on small screens. Test the result on a phone.

Why does my sticky header overlap my content?

Overlap usually means the header sits above the page content without reserving space for itself, so the top of the page slides underneath it. Add top padding to the page body equal to the header height, or use a sticky rule that keeps the header in the normal page flow.

Learning how to add a sticky header to Shopify comes down to three choices: use the theme setting when it exists, keep the header slim, and test everything on mobile before you call it done. A short, light header keeps the cart within reach on long pages without hiding the products that earn the sale. If you want help tuning the header and the rest of the store around it, our Shopify store design services can help.

Sources: Shopify Help Center, theme customization and header settings, checked November 2026; the Dropship Stair guides linked in this article.

Share the post

Scroll to Top