Creating locks

Locks are the core of Latch: each lock has a name, a password, and content that is shown only after someone enters the correct password. Right now locks are used for product page descriptions—the content you add here is what visitors see when they unlock the gated description on a product.

Where to create locks

In the Latch app, open Password Locks and use Create New Lock. You can edit or delete existing locks from the same screen.

Fields when creating a lock

  • Name — A label for you (e.g. "Product X full description", "B2B specs"). It isn’t shown to visitors.
  • Password — The secret visitors must enter. It is case-sensitive.
  • Content type — Choose one:
    • HTML content — Write or paste HTML that will be shown when unlocked (e.g. full product copy, specs, care info).
    • Liquid snippet — Reference a snippet from your theme (e.g. snippets/product-extra-details.liquid).
  • Content — Depending on type:
    • For HTML: the full HTML fragment (headings, paragraphs, links, etc.).
    • For snippet: the snippet name/path as expected by your theme.

After saving

When you save a lock, the app shows a Lock ID (e.g. _latch_lock_vip_content_1234567890). Copy this ID and paste it into the Latch Embed block on your product page in the theme editor so that block shows this lock.

Tips

  • Use clear names (e.g. by product or product type) so you can tell locks apart when you have several.
  • For HTML, you can include inline styles or rely on your theme’s CSS.
  • One lock = one password. For different products or different passwords, create separate locks.

Next: Adding the theme block to put the lock on the product page.