Learn how to upload an HTML file to Shopify with our complete guide. Read this step-by-step guide if you want to add additional HTML files to your website without breaking your live Shopify store.
Everyone has this question in mind.
Can I Add Custom HTML to Shopify?
You can indeed add unique HTML to Shopify. You can achieve this by utilizing a page builder tool or altering your store's theme files.
Your doubt is clear that you can add a custom HTML file to Shopify, now follow the step-by-step guide below.
To upload an HTML file to Shopify, follow these steps:
- Log in to your Shopify store's admin panel.
- Go to "Online Store" and then "Themes".
- Find the theme you want to edit and click "Actions" then "Edit code".
- In the "Assets" folder, click "Add a new asset".
- Choose "File" and then select your HTML file.
- Click "Upload file".
- In the "Snippets" folder, create a new snippet (if you don't already have one) by clicking "Add a new snippet".
- Give your snippet a name and paste the contents of your HTML file into the code editor.
- Click "Save".
- In the "Layout" folder, open the "theme.liquid" file.
- Find the place in the file where you want to add your HTML and insert the following code: {% include 'your-snippet-name' %}
- Click "Save".
- Go to your store's homepage to view the changes.
Note: Some of the steps can be different depending on your Shopify theme. You can refer to the theme's documentation or contact the support staff for advice if you're unsure.
How to Upload HTML Verification File to Shopify?
To upload an HTML verification file to Shopify, follow these steps:
- Log in to your Shopify store's admin panel.
- Go to "Online Store" and then "Themes".
- Find the theme you want to edit and click "Actions" then "Edit code".
- In the "Assets" folder, click "Add a new asset".
- Choose "File" and then select your HTML verification file.
- Click "Upload file".
- Make note of the URL of the verification file, which will be in the format of https://your-store-name.myshopify.com/assets/filename.html.
- Use the URL of the verification file to verify your website with the service that requires it (e.g. Google Search Console, Bing Webmaster Tools, etc.).
How to Upload an HTML Page to Shopify?
To upload an HTML page to Shopify, follow these steps:
- Log in to your Shopify store's admin panel.
- Go to "Online Store" and then "Pages".
- Click "Create page".
- Give the page a title.
- Change the page template to "Custom page".
- In the editor, switch to HTML mode.
- Paste your HTML code into the editor.
- Click "Save".
- Go to your store's homepage and click on the page link to view the changes.
Conclusion
After following the steps in this post, you can upload an HTML file to your Shopify website. If you face any difficulties, you can contact our Shopify developers and designers to help you in this process.