Mastering Shopify: How to Hide Your Footer on Specific Pages (The Community-Approved Guide)
Why Hide Your Footer on Specific Pages?
Hiding your footer (or even just parts of it) can be incredibly useful for:
- Landing Pages: Minimize distractions, guide visitors to a single call to action.
- Subscription/Signup Pages: Keep focus purely on the form.
- Special Promotions: Create unique, immersive experiences.
Method 1: The Robust Liquid Template Approach (Completely Remove Footer HTML)
This solution, shared by mastroke, is fantastic if you want to completely prevent the footer's HTML from rendering on a specific page. It involves creating a custom page template and using Liquid logic to conditionally exclude the footer. This is generally the cleanest approach from a code perspective.
Step-by-Step Instructions:
- Back Up Your Theme! Always do this before making any code changes. Go to Online Store > Themes, find your current theme, click Actions > Duplicate.
- Navigate to Theme Code: In your duplicated theme, click Actions > Edit code.
- Modify
theme.liquid: Search fortheme.liquidinside thelayoutfolder. - Locate and Update Footer Code: Find the existing footer code, which typically looks like this:
Replace it with this updated code. This Liquidunlessstatement tells Shopify, "unless the current page's template ispage.page-custom, render the footer."{% unless template == 'page.page-custom' %} {% endunless %}

- Create a Custom Page Template: Go to Online Store > Themes > Customize.
- In the top dropdown, select Pages, then click Create template.
- Choose Page as the base, name it
page-custom. Save it. - No need to add content to this template; its name is key for the Liquid condition.
- Assign the Template to Your Page: Navigate to the specific page where you want to hide the footer. In the page editor, find "Theme template" and select your new
page-customtemplate. Save.
Your selected page should now be footer-free!
Method 2: The Targeted CSS Approach (Visually Hide Footer or Specific Blocks)
Sometimes, you might prefer to keep the footer HTML but just hide it visually with CSS. Or, as Nicky_Hemming clarified, you might only want to hide a specific element within the footer, like a newsletter form. This is where Moeed's helpful CSS solutions come in.
Option A: Hiding the Entire Footer Visually with CSS
This approach uses a conditional Liquid statement to inject CSS that hides the main footer group on a specific page handle.
- Go to Online Store > Themes > Edit code.
- Find
theme.liquid: Locate this file in thelayoutfolder. - Add Code Before
