How to Add Content Locker to Your Website

July 24, 2026

With Jotform’s Content Locker widget, you can control who can view content on your website by setting requirements visitors must meet before it’s unlocked. It’s a simple way to share exclusive content, collect leads, or give access to specific resources.

Whether you’re sharing members-only content, downloadable files, online courses, or special offers, the Content Locker widget helps you decide who can access your content and when it’s available.


Adding Content Locker features to your website only takes a few steps. Here’s how to set it up:

  1. On the top-left side of your Workspace page, click on Create.
Jotform Workspace with the Create button highlighted in the top-left corner, used to create a new website widget
  1. Then, in the menu that opens up, select Website Widget.
Jotform Create menu displaying the Website Widget option for creating a new website widget
  1. Next, in the Search bar in the upper-left corner of the Choose Website Widget menu, enter Content Locker.
  2. Then, at the bottom of the search results, click on Use Widget.
Jotform Choose Website Widget window with Content Locker entered in the search bar and the Use Widget button visible on the Content Locker widget card in the search results
  1. Now, under the General tab, set up these properties:
    • Lock Scope — Select one of the following options to choose how much of the page is locked:
      • Entire Page — Locks the entire page until visitors unlock the content.
      • Specific Element — Locks only the selected element on the page.
    • Unlock Method — Select one of the following options to choose how visitors can unlock the content:
      • Access Code — Requires visitors to enter a predefined access code.
      • Email — Requires visitors to enter their email address.
      • Age — Requires visitors to confirm that they meet the required age.
      • Q&A — Requires visitors to answer a predefined question.
    • Access code — This is only available when Access code is selected as the Unlock method. Enter the access code visitors must provide to unlock the content. 
    • Title — Delete the default title in the input box and enter the heading you want to display on the lock card.
    • Subtitle — Delete the default subtitle in the input box and enter the text you want to display below the title.
Jotform Website Widget Builder displaying the Widget Properties panel under the General tab with Lock Scope, Unlock Method, Access Code, Title, and Subtitle settings for configuring the Content Locker widget
  1. Then, scroll down and continue with these settings:
    • Remember Unlocked Visitors — Leave this enabled to remember visitors who have already unlocked the content, or toggle it off to require them to unlock it again on future visits.
    • Remember For — This is only available when Remember unlocked visitors is enabled. Select how long unlocked visitors should remain remembered from the Dropdown menu.
Jotform Website Widget Builder displaying the Widget Properties panel under the General tab with the Remember Unlocked Visitors toggle and Remember For dropdown for configuring visitor access to the Content Locker widget
  1. Next, under the Style tab, customize these properties:
    • Dark Theme — Enable this option to display the lock card using a dark color scheme, or toggle it off to use the light color scheme.
    • Icon — Leave this enabled to display an icon above the lock card, or toggle it off to hide it.
    • Icon Color — Customize the icon color by entering a hex code in the input box or selecting one from the color box.
    • Icon Size — Click on and hold the slider handle, then drag it to adjust the size of the icon.
    • Overlay — Keep this on to display a tinted overlay behind the lock card, or toggle it off to remove it.
    • CTA Button — Leave this enabled to display a call-to-action button on the lock card, or toggle it off to hide it.
    • Button Text — This is only available when the CTA button is enabled. Delete the default button text in the input box and enter the text you want to display on the button.
    • Button Color — This is only available when the CTA button is enabled. Customize the button color by entering a hex code in the input box or selecting one from the color box.
    • Text Color — This is only available when the CTA button is enabled. Change the button text color by entering a hex code in the input box or selecting one from the color box.
Jotform Website Widget Builder displaying the Widget Properties panel under the Style tab with Dark Theme, Icon, Icon Color, Icon Size, Overlay, CTA Button, Button Text, Button Color, and Text Color settings for customizing the Content Locker widget
  1. Then, scroll down and adjust these settings:
    • Content Blur — Click on and hold the slider handle, then drag it to adjust how much the locked content is blurred.
    • Card shape — Select one of the following options to choose the corner style of the lock card:
      • Square Corners — Displays the lock card with square corners.
      • Rounded Corners — Displays the lock card with rounded corners.
      • Circular Corners — Displays the lock card with fully rounded corners.
    • Jotform Branding — Leave this enabled to display Jotform branding in the widget, or toggle it off to hide it.
    • Custom CSS — Enter custom CSS to further customize the widget’s appearance.
Jotform Website Widget Builder displaying the Widget Properties panel under the Style tab with Content Blur slider, Card Shape options, Jotform Branding toggle, and Custom CSS field for customizing the Content Locker widget
  1. Now, under the Layout tab, configure these properties:
    • Overlay position — Select one of the following options to choose where the lock card is displayed:
      • Centered — Displays the lock card in the center of the locked content.
      • Inline — Displays the lock card near the top of the locked content.
    • Card Width — Click on and hold the slider handle, then drag it to adjust the maximum width of the lock card.
  2. Once everything’s set, in the pink navigation bar at the top of the page, click on Publish.
Jotform Website Widget Builder displaying the Widget Properties panel under the Layout tab with Overlay Position options and Card Width slider, and the Publish button visible in the pink navigation bar at the top of the page

Note

You’ll be asked to log in to your Jotform account or sign up for one before you can continue using your widgets.

  1. Then, in the Embed section, click on Copy Code, and, if you already know how, paste that into the Embed section on your platform, and you’re good to go.
Jotform Embed section displaying the Copy Code button for copying the published Content Locker widget embed code
  1. To view embedding instructions for your widget, click on Platforms in the menu on the left side of the page.
  2. Next, in the Platforms section on the right, select the platform you want to view embedding instructions for. Or, use the Search bar at the top of the section to find it easily.
Jotform Embed page displaying the Platforms menu on the left and a list of supported website platforms on the right, with a Search bar for finding platform-specific embedding instructions for the Content Locker widget
  1. Then, follow the steps in the How to Embed Your Widget section to add it to your website.
Jotform Embed page displaying the How to Embed Your Widget section with instructions for adding the Content Locker widget to a supported website platform

That’s it! Your Content Locker widget will appear on your website just as you set it up. Take a look at the example below to see how it’ll look on a website.

Embedded Content Locker widget displayed on a website, showing the configured lock card with the selected title, subtitle, icon, call-to-action button, and overlay styling over locked content

Note

You can manage the website widgets you’ve created at any time from your account. For a full breakdown of how to do it, head over to our guide on How to Manage Website Widgets.

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Podo Comment Be the first to comment.
Still have unanswered questions?

We’re here for you 24/7, anytime you need us day or night. Have a question or need a hand with something? Our team is always ready to help out.