Shopify Footer Fix: Eliminating Extra Space on Content Pages (FAQ, Contact, & More!)
Hey store owners!
Ever notice that frustrating, empty white space below your footer on certain pages, like your FAQ or Contact Us? It’s a common visual hiccup, especially on pages with less content. Recently, we saw a great discussion pop up in the Shopify community about this very issue, with @dreamtechzone_5 asking for help with their Prestige theme. It’s a classic "sticky footer" problem, and the community really came through with some excellent advice.
Let's dive into why this happens and, more importantly, how to fix it, drawing insights from the collective wisdom shared by folks like @v.marychenka, @Ploqo, @LiquifyAI, and @ahsandoesntcare.
Understanding the "Phantom Space" Below Your Footer
The core of the problem is often how your page's main content area interacts with the footer. On pages with a lot of content, the content naturally pushes the footer down to the bottom of the viewport. But on shorter pages, like an FAQ that doesn't fill the entire screen, the footer might just sit where the content ends, leaving the rest of the browser window as blank background space. It looks unfinished and unprofessional, right?
The Community's Go-To Solution: Flexbox CSS
The most robust and widely recommended fix involves a bit of Custom CSS, specifically using Flexbox properties. This tells your browser to make the main content area of your page flexible, ensuring it expands to fill any remaining vertical space, thereby pushing your footer right to the bottom of the screen, no matter how short the page content is.
Here's the CSS Code You'll Need:
The solution provided by @Ploqo, which was refined from an earlier suggestion by @v.marychenka, is a fantastic starting point. It's been tested on the Prestige theme, which is what @dreamtechzone_5 was using.
body {
display: flex;
flex-direction: column;
min-height: 100vh;
min-height: 100dvh;
}
#main {
flex-grow: 1;
display: flex;
flex-direction: column;
}
#main > [id*="template--"] + :not([id*="template--"]) {
margin-top: auto;
}
Step-by-Step: Applying the Custom CSS
This is where attention to detail really matters. One key point from the discussion was making sure you put the code in the right place. @v.marychenka correctly identified that @dreamtechzone_5 initially placed the code in a section's custom CSS box, which won't work for global elements like the body or #main.
Follow these steps carefully:
- Go to your Shopify Admin and navigate to Online Store > Themes.
- Important: Duplicate your theme first! Click on Actions > Duplicate for your live theme. This creates a backup in case anything goes wrong. You can always revert to it.
- On your current, published theme (not a draft copy), click Actions > Edit code.
- In the left sidebar, scroll down to Assets and click on
theme.cssorbase.css(the exact file might vary, buttheme.cssis common). - Scroll to the very bottom of the file and paste the CSS code provided above.
- Click Save.
Alternatively, and often simpler for custom snippets like this, you can use the Theme Settings Custom CSS box, as @Ploqo detailed:
- Go to Online Store > Themes.
- Click Customize on the theme at the top (your current live theme).
- Click the Theme settings gear icon on the far left.

- Click Custom CSS.

- Delete any previous, incorrect footer code you might have added. Keep any other valid custom CSS (like button styles).
- Paste the Flexbox code at the end of the box.

- Click Save.

After saving, check your FAQ, Contact, and even your home page to ensure the footer now sits nicely at the bottom on all of them.
Expert Troubleshooting & Best Practices from the Community
Even with the right code, sometimes things don't go as planned. Here are some extra tips from the community experts:
- Always Work on a Duplicated Theme: This was stressed by @v.marychenka, @ahsandoesntcare, and @LiquifyAI. Before making any code changes, duplicate your live theme. It's your safety net!
- Edit the Published Theme: As @LiquifyAI and @v.marychenka pointed out, ensure you're applying changes to the theme currently live, not a draft copy you might have for testing. Customers only see the published version!
- Use Browser's "Inspect" Tool: @ahsandoesntcare and @LiquifyAI highly recommend this. Right-click the empty area on your page and choose "Inspect" (or "Inspect Element"). This will show you exactly which HTML element is occupying that space. It could be a section with a fixed
min-height, a largemargin-bottom, or even an element injected by an app. - Check for App Conflicts: If the inspect tool reveals an app-injected
divafter the footer, an app might be causing the issue. @ahsandoesntcare suggests temporarily disabling apps to confirm this before trying more complex CSS. - Review Section Settings: In your theme customizer (Online Store > Themes > Customize), select your FAQ or Contact page from the page dropdown. Then, click on each section and check its individual settings for any padding or minimum height options that might be contributing to the gap. Some themes, like Prestige, also let you assign different templates per page, so confirm you're checking the right one.
It's great to see how the Shopify community comes together to solve these common design challenges. By combining a solid CSS solution with smart troubleshooting, you can ensure your store looks polished and professional on every page. If you're looking to build or optimize your online presence, remember that a strong foundation on Shopify can make all the difference. Happy customizing!