Password protection for your online store
You can restrict visitor access to your online store by adding a password. Your password page is the landing page where you allow customers to enter your store with the password that you provide.
When your password page is active, search engines find and display only the password page of your online store. Other pages, such as product pages, are hidden and aren't displayed 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.
In the Password protection section, select Restrict access to visitors with the password.
In the Password field, enter the password that you want to add to your online store and restrict access with. Don't use the same password that you use to log in to your Shopify admin.
Optional: In the Message to your visitors field, enter the message that you want to display to visitors on the password page. If you don't want to display 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 remove password protection from your online store only after you pick a pricing plan. If you pick a plan during a free trial, then you won't be charged any subscription fees until your free trial expires.
Steps:
From your Shopify admin, go to Online Store > Preferences.
In the Password protection section, deselect Restrict access to visitors with the password.
Click Save.
Edit your password page settings
You can edit the content that displays on your password page, such as the text, colors, and typography.
Steps:
Desktop
- From your Shopify admin, go to Online Store > Themes.
- Find the theme that you want to edit, and then click Customize.
- Click the Home page drop-down menu, and then click Password.
- To edit the sections on the password page, take the following steps:
- Click the section that you want to edit. Most themes have header, content or template, and footer sections.
- Make your changes to the section's settings and options.
- Optional: Add other sections and blocks to your password page.
- Click Save.
- You can edit your theme settings, such as typography, color, social media and favicon settings, to customize your password page. These settings also apply to the rest of your theme. To edit the theme settings, take the following steps:
- Click the Theme settings gear icon.
- Click the settings category that you want to edit.
- Make your changes to the theme settings.
- Click Save.
iPhone
- From the Shopify app, tap the … button.
- In the Sales channels section, tap Online Store.
- Tap Manage all themes.
- Find the theme that you want to edit, and then tap Customize.
- Tap the Home page drop-down menu, and then tap Password.
- To edit the sections on the password page, tap Sections, and then take the following steps:
- Tap the section that you want to edit. Most themes have header, content or template, and footer sections.
- Make your changes to the section's settings and options.
- Optional: Add other sections and blocks to your password page.
- Tap Save.
- You can edit your theme settings, such as typography, color, social media and favicon settings, to customize your password page. These settings also apply to the rest of your theme. To edit the theme settings, take the following steps:
- Tap ⋮, and then tap Theme settings.
- Tap the settings category that you want to edit.
- Make your changes to the theme settings.
- Tap Save.
Android
- From the Shopify app, tap the ☰ button.
- In the Sales channels section, tap Online Store.
- Tap Manage all themes.
- Find the theme that you want to edit, and then tap Customize.
- Tap the Home page drop-down menu, and then tap Password.
- To edit the sections on the password page, tap Sections, and then take the following steps:
- Tap the section that you want to edit. Most themes have header, content or template, and footer sections.
- Make your changes to the section's settings and options.
- Optional: Add other sections and blocks to your password page.
- Tap ✓.
- You can edit your theme settings, such as typography, color, social media and favicon settings, to customize your password page. These settings also apply to the rest of your theme. To edit the theme settings, take the following steps:
- Tap …, and then tap Theme settings.
- Tap the settings category that you want to edit.
- Make your changes to the theme settings.
- Tap ✓.
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.
In the Password protection section, find the Message to your visitors field, and then paste the following code either above or below any existing content in the field:
- Click Save.
Edit the theme code for your password page
If you want to make customizations that aren't available in the theme settings, then you can edit the theme code for your password page.
Steps:
Desktop
- From your Shopify admin, go to Online Store > Themes.
- Find the theme that you want to edit, click the … button to open the actions menu, and then click Edit code.
- In the sections directory, click the
.liquid
file that you want to edit. Look for file names containingpassword-header
orpassword-footer
. - Make your code changes in the file.
- Click Save.
iPhone
- From the Shopify app, tap the … button.
- In the Sales channels section, tap Online Store.
- Tap Manage all themes.
- Find the theme that you want to edit, tap the … button to open the actions menu, and then tap Edit code.
- In the sections directory, tap the
.liquid
file that you want to edit. Look for file names containingpassword-header
orpassword-footer
. - Make your code changes in the file.
- Tap Save.
Android
- From the Shopify app, tap the ☰ button.
- In the Sales channels section, tap Online Store.
- Tap Manage all themes.
- Find the theme that you want to edit, tap the … button to open the actions menu, and then tap Edit code.
- In the sections directory, tap the
.liquid
file that you want to edit. Look for file names containingpassword-header
orpassword-footer
. - Make your code changes in the file.
- Tap ✓.
To learn more about the password.liquid
template, refer to password.liquid.