Can I password protect a page by creating a second, customized "Password Page?"

Topic summary

Goal: password protect a single wholesale ordering page in Shopify without using a third‑party app.

Proposed approaches:

  • Customer tags: Show content only to logged‑in customers tagged “wholesale” using Liquid (if customer.tags contains ‘wholesale’). Works for page content and custom links, but cannot control the main navigation dynamically; use a separate menu/location instead.
  • Per‑page password via metafields (Dawn theme): Edit main-page.liquid to prompt for a password and reveal the page if a URL query parameter matches a password stored in a page metafield. Steps include duplicating the theme, modifying the template, and using schema settings; a detailed tutorial link and example were provided. Images and code snippets are central to implementation.

Key terms: Metafields = custom data fields on resources (e.g., pages). Dawn = Shopify’s default theme. main-page.liquid = template controlling standard pages.

Latest development: A follow‑up asks how to apply the same password‑metafield logic to a custom template (page.database.liquid) containing custom HTML/CSS/JS.

Status: No confirmed solution yet for the custom template case; discussion remains open.

Summarized with AI on January 1. AI used: gpt-5.

You can not use this for a dynamic menu, You need add it as a separate menu maybe in a different place.