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.

Add your online store password

You can add password protection for your online store.

Steps:

  1. From your Shopify admin, go to Online Store > Preferences.

  2. In the Password protection section, select Restrict access to visitors with the password.

  3. 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.

  4. 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.

  5. 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:

  1. From your Shopify admin, go to Online Store > Preferences.

  2. In the Password protection section, deselect Restrict access to visitors with the password.

  3. 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:

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme that you want to edit, and then click Customize.
  3. Click the Home page drop-down menu, and then click Password.
  4. To edit the sections on the password page, take the following steps:
    1. Click the section that you want to edit. Most themes have header, content or template, and footer sections.
    2. Make your changes to the section's settings and options.
    3. Optional: Add other sections and blocks to your password page.
    4. Click Save.
  5. 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:
    1. Click the Theme settings gear icon.
    2. Click the settings category that you want to edit.
    3. Make your changes to the theme settings.
    4. Click Save.

You can hide the footer section on your password page.

Steps:

  1. From your Shopify admin, go to Online Store > Preferences.

  2. 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:

<style>footer { display: none; }</style>
  1. 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:

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme that you want to edit, click the button to open the actions menu, and then click Edit code.
  3. In the sections directory, click the .liquid file that you want to edit. Look for file names containing password-header or password-footer.
  4. Make your code changes in the file.
  5. Click Save.


To learn more about the password.liquid template, refer to password.liquid.

Can’t find the answers you’re looking for? We’re here to help.