Home Shopify for Developers How to create a blank page in Shopify, without the header and footer?
Shopify for Developers

How to create a blank page in Shopify, without the header and footer?

When you create a new page template in Shopify, it will automatically include the header, footer, and styling from the theme.liquid file. If you want to create a page without those sections, for example a landing page for a product promotion, or a wholesale landing page that you will password protect, you will have to remove the layout using Shopify Liquid.

How to remove the header and footer in Shopify?

You can remove the header, footer, and styling from a Shopify page using liquid’s line of code to remove the “layout”:

{% layout none %}

Now you can start coding below like it is a brand new site – no styling will be included. You can use the HTML boilerplate below:

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Boilerplate for blank HTML page on Shopify</title>
    <link rel="icon" type="image/png" href="{{ settings.favicon | image_url: width: 32, height: 32 }}">
    {{ 'style.css' | asset_url | stylesheet_tag }}
  </head>
  <body>
	
  </body>
</html>
Written by
Igor Bujas

I am a UI designer and front-end developer professional working mostly in the Shopify ecosystem. I've been working in the industry for so long that I was fixing bugs for IE5, and animating in Flash while it was still a Macromedia product. While not differentiating between the UI and the code, I am always looking to get outdoors for some alpine climbs or scuba dives. I also work as a Krav Maga instructor in Zagreb, Croatia.

Leave a comment

Related Articles

Shopify for Developers

Can you customize your Shopify store without knowing how to code?

Yes, you can customize your Shopify store without knowing how to code...

Shopify flow explained
Shopify for DevelopersShopify for Entrepreneurs

What is Shopify Flow, and how does the Shopify Flow app work?

Shopify Flow is an e-commerce automation platform that allows merchants to create...

Shopify for Developers

Which Shopify plan should I choose?

Choosing the right Shopify plan for your business is an important decision...

Shopify for Developers

Shopify or Wix?

Choosing between Shopify and Wix depends on your specific needs and preferences....

4 proven ways to speed up your Shopify store.

    We respect your privacy. Unsubscribe at anytime.