Password protection for your online store
You can restrict visitors access to your online store by adding the password page in the Password protection section. The password page is a landing page that requires any visitor to provide a password to visit your online store. If you want your customers to access your online store, then you can provide them with the password to your online store.
When your password page is active, only the password page of your online store is found by search engines. Other pages, like product pages, are hidden, and search engines won't display these pages in search results.
On this page
Add your online store password
You can add password protection for your online store.
Steps:
From your Shopify admin, go to Online Store > Preferences.
Scroll to the Password protection area, and check Restrict access to visitors with the password.
In Password, enter the password that you'll give to the customers who you want to be able to access your online store. Don't use the same password that you use to log into your admin.
In Message for your visitors, enter the message that you want to show on the password page. If you don't want to show a message, then leave this field blank.
Click Save.
Remove your online store password
If you remove password protection, then anyone can visit your online store.
You can only remove password protection from your online store after you pick a pricing plan. If you pick a plan while you are on a free trial, then you won't be charged any subscription fees until your free trial expires.
There are two ways to remove your online store password: from your Themes page or from the Preferences page under Online Store in your Shopify admin.
You can remove the online store password from the Theme page of your online store in your Shopify admin.
Steps:
- From your Shopify admin, go to Online Store > Themes
- There is a banner displayed that says, "Your online store is password protected." Click Remove password. If the banner isn't displayed, then your online store isn't password protected.
You can also remove the online store password from the Preferences page of your online store in your Shopify admin.
Steps:
From your Shopify admin, go to Online Store > Preferences.
Go to the Password protection section.
Uncheck Restrict access to visitors with the password.
Click Save.
Edit your password page settings
You can edit the content that shows on your password page, such as the text, colors, and typography.
Steps:
Hide the footer on your password page
You can hide the footer section on your password page.
Steps:
From your Shopify admin, go to Online Store > Preferences.
Scroll to the Password protection area. In Message for your visitors, paste the following code:
You can paste this code either above or below any existing content.
- Click Save.
Hide your store name on your password page
You can hide your store name on your password page.
Steps:
From your Shopify admin, go to Online Store > Preferences.
Scroll to the Password protection area. In Message for your visitors, paste the following code:
You can paste this code either above or below any existing content.
- Click Save.
Edit the theme code for your password page
If you want to make customizations that are not available in the theme settings, then you can edit the theme code for the password page.
Steps:
The password.liquid
file in the Templates
directory is included in your theme by the {{ content_for_layout }}
Liquid tag, which is found in the password page layout file. To make any changes to the password page layout file, click password.liquid
in the Layout
directory.
To learn more about the password.liquid
template, refer to password.liquid.