Password protection for your online store

You can restrict visitors access to your online store by adding the password page in thePassword protection部分。密码是一个着陆页,页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.

Add your online store password

You can add password protection for your online store.

Steps:

  1. From your Shopify admin, go to欧宝体育官网入口首页>Preferences.

  2. Scroll to thePassword protectionarea, and checkRestrict access to visitors with the password.

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

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

  5. ClickSave.

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 youpick 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 yourThemespage or from thePreferencespage under欧宝体育官网入口首页in your Shopify admin.

You can remove the online store password from theThemepage of your online store in your Shopify admin.

Steps:

  1. From your Shopify admin, go to欧宝体育官网入口首页>Themes
  2. There is a banner displayed that says, "Your online store is password protected." ClickRemove password. If the banner isn't displayed, then your online store isn't password protected.

You can also remove the online store password from thePreferencespage of your online store in your Shopify admin.

Steps:

  1. From your Shopify admin, go to欧宝体育官网入口首页>Preferences.

  2. Go to thePassword protection部分。

  3. UncheckRestrict access to visitors with the password.

  4. ClickSave.

Edit your password page settings

You can edit the content that shows on your password page, such as the text, colors, and typography.

Steps:

  1. From your Shopify admin, go to欧宝体育官网入口首页>Themes.
  2. Find the theme that you want to edit, and then clickCustomize.
  3. SelectOthers>Password. If you don't seePassword pagein the menu, then you need toactivate password protection for your online store.
  4. To edit the sections on the password page, do the following:
    1. Click the section that you want to edit. Most themes have header, content, and footer sections.
    2. Make changes to the section settings.
    3. ClickSave.
  5. You can edit your theme settings, such as typography, color, social and favicon settings, to customize your password page. These settings also apply to the rest of your theme. To edit the theme settings, do the following:
    1. ClickTheme settings.
    2. Click the settings category that you want to edit.
    3. Make changes to the theme settings.
    4. ClickSave.

You can hide the footer section on your password page.

Steps:

  1. From your Shopify admin, go to欧宝体育官网入口首页>Preferences.

  2. Scroll to thePassword protectionarea. InMessage for your visitors, paste the following code:

You can paste this code either above or below any existing content.

  1. ClickSave.

Hide your store name on your password page

You can hide your store name on your password page.

Steps:

  1. From your Shopify admin, go to欧宝体育官网入口首页>Preferences.

  2. Scroll to thePassword protectionarea. InMessage for your visitors, paste the following code:

You can paste this code either above or below any existing content.

  1. ClickSave.

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:

  1. From your Shopify admin, go to欧宝体育官网入口首页>Themes.
  2. Find the theme you want to edit, click thebutton to open the actions menu, and then clickEdit code.
  3. In theTemplatesdirectory, clickpassword.liquid.
  4. In thepassword.liquidtemplate, you will see Liquid tags that include the sections that make up the password page. Your theme might include the following Liquid tags:
{% section 'password-header' %}
{% section 'password-content' %}
{% section 'password-footer' %}
  1. To modify the content of any of the above sections, in theSectionsdirectory, click one of the following files:
    • password-header.liquid
    • password-content.liquid
    • password-footer.liquid
  2. Edit the code to suit your needs.
  3. ClickSave.

Thepassword.liquidfile in theTemplatesdirectory 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, clickpassword.liquidin theLayoutdirectory.

To learn more about thepassword.liquidtemplate, refer topassword.liquid.

Ready to start selling with Shopify?Try it free