Mastering Shopify: How to Hide Your Footer on Specific Pages (The Community-Approved Guide)

Hey store owners! It's your friendly Shopify expert here, diving into a really common design challenge that popped up in the community recently. We’ve all been there, right? You’re building a special landing page, maybe a signup page, or a particular content page, and you realize the standard header and footer just don’t fit the vibe. You want a clean, focused look, free from distractions. That's exactly what our community member Nicky_Hemming was grappling with over in the Shopify forums. Nicky 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?" A totally valid question that many of you probably share! The good news is, the community came through with some excellent solutions, and I’m here to break them down for you.

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:

  1. Back Up Your Theme! Always do this before making any code changes. Go to Online Store > Themes, find your current theme, click Actions > Duplicate.
  2. Navigate to Theme Code: In your duplicated theme, click Actions > Edit code.
  3. Modify theme.liquid: Search for theme.liquid inside the layout folder.
  4. Locate and Update Footer Code: Find the existing footer code, which typically looks like this:
    {% sections 'footer-group' %}
    Replace it with this updated code. This Liquid unless statement tells Shopify, "unless the current page's template is page.page-custom, render the footer."
    {% unless template == 'page.page-custom' %}
        
    {% sections 'footer-group' %}
    {% endunless %}
    Screenshot showing theme.liquid code editor with footer code
    Screenshot showing updated theme.liquid code
  5. 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.
  6. 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-custom template. 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.

  1. Go to Online Store > Themes > Edit code.
  2. Find theme.liquid: Locate this file in the layout folder.
  3. Add Code Before Tag: Add the following code right above the closing tag. Remember to replace 'sign-up-to-the-dahlia-days-newsletter' with your target page's handle.
    {% if page.handle == 'sign-up-to-the-dahlia-days-newsletter' %}
    
    {% endif %}
    Screenshot showing CSS code added to theme.liquid

This hides the entire footer section on the specified page visually.

Option B: Hiding a Specific Block (like a Form) Within the Footer

If you only want to hide a specific element, like a newsletter form, Moeed provided an even more precise solution:

  1. Follow steps 1-3 from Option A.
  2. Add this targeted CSS:
    {% if page.handle == 'sign-up-to-the-dahlia-days-newsletter' %}
    
    {% endif %}
    Screenshot showing CSS code to hide a specific form embed

This targets the shopify-forms-embed element with the ID app-embed. To use this for your specific element, you'll need to inspect your page's source code to find its unique class or ID.

Which Method Should You Choose?

  • For complete structural removal: Go with Method 1 (Liquid Template Approach). It’s cleaner, ensures the footer HTML isn't even sent to the browser, and is great for true landing page optimization.
  • For a quick visual hide, or to hide specific sections within the footer: Method 2 (Targeted CSS Approach) is your friend. It's often quicker for visual changes and perfect for hiding individual blocks without affecting the entire footer's underlying structure.

No matter which path you take, remember to always test your changes thoroughly on a duplicated theme first! This way, you can experiment without fear of breaking your live store.

It's always awesome to see the Shopify community collaborate and come up with such practical solutions for real-world store challenges. Big thanks to mastroke and Moeed for sharing their expertise! With these tips, you're now equipped to create more focused, high-converting pages on your Shopify store. Happy customizing!

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases