I’m using a highly customized version of the debut theme, and I have a landing page that I want to hide the header and footer on. I can see the elements in the developer tools and delete them, but for the life of me I cannot figure out how to stop them from loading when the page is refreshed. I’ve tried messing with the theme.liquid file and the custom.css file, as well as the specific page file.
They show up as a div with shopify-section-header and shopify-section-footer.
I’m not much of a developer, so please be understanding.
To hide the header and footer on a page create a new page template example “no-header-footer”. Then apply conditional logic on the header file. Edit your header.liquid and add the below code: