---
title: Hide part of a page (Inside Locker)
description: Lock only a section of a page or post, such as a download, a video or the rest of an article, and show a locker box with a message and a login form in its place.
url: "https://ultimatemembershippro.com/docs/how-to-set-an-inside-locker/"
updated: "2026-10-20"
category: Content Restriction
tags:
  - inside locker
  - locker
---

# Hide part of a page (Inside Locker)

6 minBeginnerUltimate Membership Pro 14.2+

Sometimes a page on your Ultimate Membership Pro site should stay public and only one part is for members: a worksheet, a video, the second half of an article. An Inside Locker [hides that part](https://ultimatemembershippro.com/features/content-restriction/) and shows a locker box instead, with your message and, if you want, a login form.

This guide designs a locker box first, then locks one section of a page with it, using [the block editor](https://ultimatemembershippro.com/docs/use-the-block-editor-blocks/), the shortcode or [Elementor](https://ultimatemembershippro.com/docs/use-the-elementor-widgets/).

Before you start

- You have at least one Membership. See [Create your first Membership](https://ultimatemembershippro.com/docs/step-2-create-levelssubscriptions/).
- To lock a whole page, use the Locker box instead: [Restrict your first page](https://ultimatemembershippro.com/docs/step-3-restrict-pagescontent/).

## Open Inside Lockers

Go to Ultimate Membership Pro*›*Inside Lockers. It's in the menu bar at the top of the Ultimate Membership Pro screens. Each locker template is a design for the box people see in place of the hidden content.

[![Inside Lockers list with the Add New Locker Template button and two templates, Premium Teaser with the Zipped theme and Empty Showcase (only hide) with the Default theme](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-inside-locker-01-lockers-list.png)](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-inside-locker-01-lockers-list.png)
The two templates that come with the plugin. The first one is renamed Premium Teaser for the example.

 Loker with Form

Shows a message and a login form with register and lost-password links. Rename it if you like.

Empty Showcase (only hide)

Shows nothing. The section simply disappears for people who can't see it.

Edit one of them, or click Add New Locker Template.

## Design the locker box

[![Locker template settings: Template Name Premium Teaser, Predefined Theme with Zipped selected, Display Options with Login Form and Additional Links switched on](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-inside-locker-02-locker-template.png)](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-inside-locker-02-locker-template.png)
The template settings. The numbers match the list below.

 1Template Name

Only you see it, when you pick a locker in the editor.

2Predefined Theme

Default, Basic, Zipped, Zone, Majic Transparent, Star, Clouddy or Darks. Fine-tune it in the Custom CSS panel.

3Display Options

What appears inside the box. Turn everything off to just hide the content.

- **Login Form**: members sign in right in the box.
- **Additional Links**: register and lost-password links under the form.
- **Social Media Login**: the social sign-in buttons, if [Social Connect](https://ultimatemembershippro.com/docs/how-to-set-social-login/) is set up.

Locker Message

Text at the top of the box: say why the content is locked and how to unlock it. You can add links and images.

Custom CSS

Optional styles for this locker only.

The **Live Preview** on the right shows the box as you change it.

[![Live Preview of the locker box with the message This worksheet is for members and a login form with Register link](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-inside-locker-03-locker-preview.png)](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-inside-locker-03-locker-preview.png)
The preview of the example locker.

Click Save Locker Template. The list shows each template's **ID**; you need it for the shortcode.

## Lock a section of the page

Pick the way that matches your editor:

## Block editor

1. Add the **Content Locker Shortcode** block where the hidden part starts.
2. Put the members-only blocks inside it.
3. With the block selected, set **Type**, **Target** and **Template** in the sidebar.

[![Block settings of the Content Locker Shortcode block: Type Show, Target pro_monthly and annual_pass selected, Template Premium Teaser](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-inside-locker-04-locker-block-settings.png)](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-inside-locker-04-locker-block-settings.png)
Hold Ctrl (Cmd on a Mac) to select more than one target.

 Type

**Show**: only the targets see the section. **Block**: everyone except the targets sees it.

Target

All, Registered Users, Unregistered Users or a Membership (listed by its slug). Only an active Membership counts.

Template

The locker box people without access see.

## Classic editor

1. Select the text you want to hide.
2. Click the **Ultimate Membership Pro - Inside Locker** button in the toolbar.
3. In **Insert Content Locker**, choose the **Visibility rule** (Show Content Only For or Hide Content Only For), the **Target users** and the **Locker template**, then click Add.

The button wraps your selection in the shortcode, so the tags land in the right place.

## Elementor

Add the **UMP - Inside Locker** widget, write the hidden content in its **Content** field, then set **Show**, **Target** and **Template**.

To lock whole widgets or sections instead of a block of text, use an add-on: [Elementor Widget Lock](https://ultimatemembershippro.com/docs/elementor-widget-lock/) for Elementor and [Divi Content Locker](https://ultimatemembershippro.com/docs/divi-content-locker/) for Divi sections, rows and columns.

Test it in the default editor first

If you use a page builder, build the locker in the block editor or the classic editor on a draft page first. Open the page in a private window as a visitor, then as a test member. When it works, copy the shortcode into your page builder, for example into a Shortcode element. If it works in the default editor but not in the builder, you know the locker settings are right and only the builder needs a look. Safe Mode can help you find the cause: [Find plugin conflicts with Safe Mode](https://ultimatemembershippro.com/docs/find-plugin-conflicts-with-safe-mode/).

## Shortcode

All three ways above produce this shortcode. You can also type it yourself in any text area that [runs shortcodes](https://wordpress.org/documentation/article/shortcode-block/):

Show a section only to two Memberships, with locker template 1

```
[ihc-hide-content ihc_mb_type="show" ihc_mb_who="2,3" ihc_mb_template="1"]
The members-only content goes here.
[/ihc-hide-content]
```

 ihc_mb_type

`show` or `block`.

Default: **show**

ihc_mb_who

Who it applies to, separated by commas: `all`, `reg` (registered users), `unreg` (visitors) or Membership IDs.

ihc_mb_template

The locker template ID. Leave it out to hide the content without showing a box.

membership

Short form: `[ihc-hide-content membership=2]` shows the content only to Membership 2.

Several lockers on one page

- Every opening tag needs its own closing tag. Each `[ihc-hide-content …]` ends with its own `[/ihc-hide-content]`.
- Put the lockers one after another. Don't place one `[ihc-hide-content]` inside another one. WordPress can't tell which closing tag belongs to which opening tag when both have the same name, so the sections can end up in the wrong place.
- To show the same section to more than one Membership, list them in one locker: `ihc_mb_who="2,3"`.
- A different shortcode can sit inside a locker. Close the inner shortcode before the closing tag of the locker.

Ultimate Membership Pro*›*Shortcodes lists a ready-made **Direct Restriction** shortcode for each Membership.

## Check what visitors see

[![Front-end page Plan your first month: the public intro paragraph, then the locker box with the message and a login form](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-inside-locker-05-visitor-view.png)](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-inside-locker-05-visitor-view.png)
The example page for a visitor. The intro stays public; the worksheet is replaced by the locker box.

Good to know

- Administrators always see the hidden content. Test in a private window or with a test member.
- If you don't pick any target, the section isn't hidden from anyone.
- The hidden content must sit between the opening and the closing tag of the shortcode.

## Example: a members-only worksheet

 **Plan your first month**The lesson intro is public. The worksheet and the video are for Pro members.

**Locker template**
: Premium Teaser (Zipped, Login Form and Additional Links on)

**Locker Message**
: This worksheet is for members. Log in, or join Pro Monthly to download it.

**Type**
: Show

**Target**
: Pro Monthly, Annual Pass

## Different content for different Memberships

Use one locker for each Membership and put them one after another. In this example, Pro Monthly has ID 2 and Annual Pass has ID 3. Pro Monthly members get the checklist and Annual Pass members get the bonus video.

Two lockers, one after another

```
[ihc-hide-content ihc_mb_type="show" ihc_mb_who="2"]
The monthly checklist goes here.
[/ihc-hide-content]

[ihc-hide-content ihc_mb_type="show" ihc_mb_who="3"]
The bonus video for Annual Pass members goes here.
[/ihc-hide-content]
```

A member who has both Memberships sees both sections. Administrators see everything. Find each Membership ID in Ultimate Membership Pro*›*Memberships.

Locker boxes

Neither locker above has an `ihc_mb_template`, so people without access simply don't see the section. If you add a template to a locker, everyone who doesn't qualify for that locker sees its box, including members of the other Membership. To show one box only to people who have neither Membership, add a last locker with both IDs and the template, and leave it empty:

```
[ihc-hide-content ihc_mb_type="show" ihc_mb_who="2,3" ihc_mb_template="1"][/ihc-hide-content]
```

## Who sees the Locker box and the button

The **Ultimate Membership Pro - Locker** box and the **Ultimate Membership Pro - Inside Locker** button show up for the people who can use that editor. They follow the user's WordPress role. There is no separate setting for them in Ultimate Membership Pro.

 Locker box

Appears in the editor of posts, pages and public custom post types. Anyone who can open that editor sees it.

Inside Locker button

Appears in the toolbar of the classic editor. The user needs permission to edit both posts and pages. With the default WordPress roles, that means Administrators and Editors. Authors and Contributors can't edit pages, so they don't get the button. The user's profile must also keep the visual editor on: in **Users › Profile**, **Disable the visual editor when writing** stays unchecked.

Content Locker Shortcode block

Appears in the block editor for everyone who can use it. It has no role setting either.

Access to the dashboard

Only Administrators can open the WordPress dashboard by default. Other logged-in users are sent back to your site. To let an Editor or another role into the editor, switch the role on in Ultimate Membership Pro*›*Settings*›*WP Dashboard Access, under **Enable access for specific WordPress Roles**. See [Control access to the WordPress dashboard](https://ultimatemembershippro.com/docs/how-to-provide-access-on-wp-dashboard/).

## Troubleshooting

  The locker box shows, but the content is still visible after it

The content is outside the shortcode, after the closing `[/ihc-hide-content]` tag. Move it between the opening tag and the closing tag. Select the content first and use the editor button, and the tags are placed for you.

  I added a second locker and now the wrong content shows, or [/ihc-hide-content] appears on the page. Why?

The opening and closing tags don't match up. Check that every `[ihc-hide-content …]` has its own `[/ihc-hide-content]`, and that no locker sits inside another locker. WordPress can't match tags of the same name when they are nested, so a stray closing tag can show as text. Put the lockers one after another instead. See “Several lockers on one page” above.

  “No Lockers Available.” in the editor popup

There's no locker template yet. Create one in Inside Lockers first.

  I don't see the Inside Locker button

It's in the classic editor toolbar. In the block editor use the Content Locker Shortcode block; in Elementor use the UMP - Inside Locker widget.

  The Locker box or the Inside Locker button is missing for an editor or author. What do I check?

Go through these three checks in order.

1. **The role.** Open **Users**, find the person and note their role. Then open **Ultimate Membership Pro › Settings › WP Dashboard Access** and check that this role is switched on. If it isn't, the user can't reach the editor at all. For the button, the role must also be allowed to edit pages (see “Who sees the Locker box and the button” above).
2. **The editor.** The button is only in the classic editor. In the block editor, use the Content Locker Shortcode block. If the Locker box is missing from the screen, it may be hidden: in the classic editor open **Screen Options** at the top and tick **Ultimate Membership Pro - Locker**; in the block editor open **Options › Preferences › Panels**.
3. **A plugin conflict.** Turn on Safe Mode with no plugins kept active, then open the editor again as the same user. If the box or button comes back, turn plugins back on one at a time to find the one that hides it. The steps are in [Find plugin conflicts with Safe Mode](https://ultimatemembershippro.com/docs/find-plugin-conflicts-with-safe-mode/).

  The content disappears but no box shows

The template is set to none, or it's the Empty Showcase (only hide) template, which shows nothing by design.

  A member with the right Membership sees the locker box

The Membership must be active. Check it in Members; see [How to change Member Status](https://ultimatemembershippro.com/docs/how-to-change-member-status/).

## What's next

 [**Restrict content with Access Rules**Lock categories, post types and URLs.](https://ultimatemembershippro.com/docs/how-to-restrict-any-page-or-group-of-pages/)[**Release content over time**Unlock pages on a schedule.](https://ultimatemembershippro.com/docs/drip-content-main-settings/)[**Restrict your first page**Lock a whole page with the Locker.](https://ultimatemembershippro.com/docs/step-3-restrict-pagescontent/)[**Restricted content is visible to everyone**What to check when a lock seems ignored.](https://ultimatemembershippro.com/docs/set-up-private-content-but-everything-is-public/)
