Adding the theme block

The Latch Embed block is a theme app extension that you add in the Shopify theme editor. It shows a lock (password field) on the storefront and, after a correct password, shows the content for that lock. Currently Latch is intended for product page descriptions—add the block on the product page where you want the gated description to appear. Support for other page types is planned.

Add the block

  1. In Shopify admin go to Online Store → Themes.
  2. Click Customize on the theme you use.
  3. Open a product page (or the default product template) so you can add the block where the product description is shown.
  4. In the product section, click Add block (or the equivalent for your theme).
  5. Under Apps, select Latch Embed.
  6. In the block settings, paste the Lock ID from the Latch app (from Password Locks → your lock).
  7. Save the theme.

Block settings

The main setting is the Lock ID. Make sure it matches exactly the ID shown in the Latch app for the lock you want. If the ID is wrong, the block may show an error or the wrong lock.

Where you can place it (for now)

Right now the block is designed to be used on product pages—in or near the product description area. Add it in a spot where you want the gated content to appear (e.g. below the main description or in a collapsible section). If you don’t see Latch Embed under Apps, ensure the Latch app is installed and the theme supports app blocks. We plan to support other page types (e.g. collection pages, static pages) in the future.

How it behaves on the storefront

  • Before unlock: Visitors see the lock UI (e.g. lock icon and password field) where the block is placed.
  • After correct password: The lock content (your gated description) is shown and stays visible for that browser session.
  • After closing the browser / new session: The content is locked again; the visitor must enter the password again.

For creating the locks that you attach to this block, see Creating locks.