PRESENTYBOX is a website design studio serving clients worldwide.
Sometimes a page needs to stand on its own. A landing page, a sales page, an event registration, or a “coming soon” splash all work better without your site’s main navigation pulling visitors away. The problem? Squarespace doesn’t include a built-in toggle to hide the header and footer on a single page.
The good news: it takes about 30 seconds with a small code snippet. This guide walks you through the easiest methods for both Squarespace 7.1 and 7.0.

A few common reasons:
Whichever method you pick below, the change only affects the page you apply it to — the rest of your site stays exactly as it is.
This is the fastest and most reliable approach. It hides the header and footer instantly when the page loads, with no flicker.
Step-by-step:
Refresh the page on your live site to see the change.
Hide the header only
<style>
#header {
display: none !important;
}
</style>
Hide the footer only
<style>
#footer-sections {
display: none !important;
}
</style>
Hide both
<style>
#header, #footer-sections {
display: none !important;
}
</style>

JavaScript is overkill for simply hiding the header and footer — CSS does it faster and without any visual flicker. But if you want to hide them conditionally (only on mobile, only after a scroll, only after a delay), JavaScript is the right tool.
Paste this into the same place: Page Settings → Advanced → Page Header Code Injection.
<script>
document.addEventListener('DOMContentLoaded', function() {
const header = document.querySelector('#header');
const footer = document.querySelector('#footer-sections');
if (header) header.style.display = 'none';
if (footer) footer.style.display = 'none';
});
</script>
Heads-up: Because JavaScript runs after the page starts loading, visitors may see a brief flash of the header before it disappears. Stick with CSS unless you actually need conditional logic.
If you’re on the older Squarespace 7.0, you have a built-in shortcut: Cover Pages. They automatically hide the header and footer — no code required.
Cover Pages are quick, but limited in customization. If you need more flexibility, use the CSS method below.
Note: Cover Pages were removed in Squarespace 7.1. If you’re on 7.1, use the CSS or JavaScript methods above.
For a regular 7.0 page, the same CSS approach works — you just paste it into Page Settings → Advanced → Page Header Code Injection:
<style>
#header, #footer {
display: none !important;
}
</style>
Note the selector difference: 7.0 uses #footer, while 7.1 uses #footer-sections.
.Header or .site-header instead.Hiding the header and footer on a single page is one of those small Squarespace tweaks that makes a big visual difference. For most people, the CSS snippet is the right call — fast, clean, and bulletproof. Reach for JavaScript only when you need conditional behavior, and if you’re still on 7.0, Cover Pages will save you even the small amount of code.
Happy designing!
PRIVACY POLICY
© 2026 PRESENTYBOX | ALL RIGHTS RESERVED
Main
TEMPLATES
TO TOP
PRESENTYBOX is a website design studio serving clients worldwide. Specializing in Showit WIX & Squarespace website design for female entrepreneurs.