Shopify Pro Tip: How to Hide Your Footer on Just One Page (No More Site-Wide Headaches!)
Hey there, fellow store owners! Ever found yourself needing a super clean, distraction-free page on your Shopify store? Maybe it's a dedicated landing page for a special campaign, a 'thank you' page after a purchase, or a unique sign-up form. The header and footer are essential for site navigation and branding, but sometimes, they just get in the way.
That's exactly what Nicky_Hemming from our community ran into recently. They asked, "I need to hide my footer on one single page template. If I hide it in theme editor it hides it site-wide which I don’t want. Any ideas how to do this?" It’s a classic scenario, right? You want control over specific pages without affecting your entire site.
Good news! Our community experts jumped in with a couple of fantastic, battle-tested solutions. Let's dive into how you can achieve this, giving you that pixel-perfect control you're looking for.
Option 1: The Liquid Logic Approach with Custom Templates
This method is fantastic because it truly removes the footer section's code from rendering on your chosen page. It's a cleaner, more robust solution for a complete overhaul of a page's layout. It involves creating a custom page template and then adding a conditional statement in your main theme.liquid file.
Step-by-Step Guide:
- Navigate to Online Store & Edit Code: From your Shopify admin, go to Online Store, then click Themes. Find your current theme and click Actions > Edit code.
- Locate
theme.liquid: In the file editor, look for thetheme.liquidfile inside thelayoutfolder. This file is like the skeleton for all your store's pages. - Modify the Footer Code: Find the existing footer code. It usually looks something like this:
You'll want to replace this with a conditional statement. This tells Shopify, "Hey, unless this specific template is being used, go ahead and show the footer."
{% unless template == 'page.page-custom' %} {% endunless %}
Important: In the example above,
'page.page-custom'is the name of the template we'll create. You can choose any name, just make sure it matches in both places! - Create a Custom Page Template:
- Go back to your Shopify admin and navigate to Online Store > Themes. Click Customize.
- In the customizer, use the dropdown at the top to select Pages, and then click Create template.
- Give your new template a descriptive name, like
page-custom(which createspage.page-custom.liquid). Save it.
This image from the original thread shows the template creation process:

- Assign the Template to Your Page:
- Now, go to the specific page in your Shopify admin (Online Store > Pages) where you want the footer hidden.
- In the right-hand sidebar, under the Theme template section, select your newly created template (e.g.,
page-custom). - Save the page.
Voila! That page will now render without your site's footer.
Option 2: The Conditional CSS Hiding Approach
If you prefer a quicker, CSS-based solution, or if you only need to hide the footer on a specific page by its URL handle without creating a new template, Moeed from the community offered a great alternative. This method uses CSS to visually hide the footer when a certain page is loaded.
Step-by-Step Guide:
- Identify Your Page Handle: First, you need the "handle" of the page where you want to hide the footer. This is usually the last part of your page's URL. For example, if your page URL is
yourstore.com/pages/my-special-page, the handle ismy-special-page. Nicky_Hemming's page, for instance, had the handlesign-up-to-the-dahlia-days-newsletter. - Navigate to Online Store & Edit Code: Just like before, go to Online Store > Themes > Actions > Edit code.
- Add Code to
theme.liquid: Open yourtheme.liquidfile. Scroll to the very bottom, and just above the closing
