Liquid theme that automatically redirects customers to your custom storefront.
Download theme
When using a headless Shopify setup, you normally don't want customers to access any of the theme pages except the checkout. However, you can't totally disable the theme and a lot of links will still point to the theme (e.g. links in emails, plugins and the checkout).
The sole purpose of this Liquid theme is to automatically redirect customers that land on one of the theme pages to the related page in your custom storefront.
- this does not offer the full-featured preview available in the Themes > Customize section of Shopify's Admin > Online Store
npx shopify theme dev --store=sample-kbs.myshopify.com
npm run build
- upload
/dist/shopify-headless-theme-kbsto your Shopify store
- Download the shopify-headless-theme-master.zip file
- Navigate to Online Store > Themes in your Shopify admin
- Upload the theme to your Theme Library
- Click the Customize button of the newly installed theme
- Configure the
storefront_hostnamein Theme settings > Storefront - Favicon section > Upload a favicon
- Publish the theme 🚀
- go to Store Settings > Checkout > Configurations > Customize
- there is no way to download a configuration, alas
- go to Store Settings > Notifications > Customize email templates button (top right) or `/settings/email_settings' from Admin
- select logo
- set accent color
You can configure the custom_redirects value in Theme settings > Storefront.
The redirect rule format is as following:
Shopify path > Storefront path
Each line in the textarea represents a single redirect rule.
The example below removes the /account prefix from the login, register and reset password redirects.
/account/login > /login
/account/register > /register
/account/reset > /reset-password
/account/activate > /activate-account
Enable the multipass_login option in Theme settings > Storefront if you implemented Multipass (a Shopify Plus feature) in your storefront. Enabling this feature will also redirect customers from the Shopify login page to your custom storefront. If not enabled, a customizable login page will be shown when customers click the "Log in" link in the checkout.
Since the Shopify Storefront API unfortunately does not support fetching gift cards yet, a customizable gift_card.liquid template has been added.