Do you want to add content lock on your WordPress blog ? Many websites use content locking to drive lead action and increase sales, or simply to build a list of subscribers.

In this tutorial, we will show you how to lock content on WordPress without annoying visitors.

to lock content on WordPress

What is "content locking" and what does it consist of?

Locking the content or " Content locking Is a technique used by many blog owners that requires users to take an action before they can access content.

Sample content lock

If it is badly used, it may make visitors flee. But when it's well used, it could be very effective at generating leads and enabling you to reach your marketing goals.

The best time to use content lock is when you offer valuable content, such as a free course, an ebook, or something similar.

It uses the same psychological trick as content updates. Users will have no trouble doing a light action to earn even more.

Now that you have an idea of ​​the use cases, let's see how you can easily add a content lock on WordPress as a pro.

What do you need to lock the content on WordPress

For this tutorial, we will use " OptinMonster ". It is one of the best lead generation solutions on the market. You will need a pro plan for content locking.

How to add content lock

The first thing you need to do is install and activate the plugin OptinMonster. For more details, see our step-by-step guide on how to install a WordPress plugin.

This plugin is just a connector between your WordPress site and your account OptinMonster.

Upon activation, click on the OptinMonster menu option in your dashboard bar. You will be prompted for your OptinMonster username and API.

Optin MOnter key

You can find the API information in your OptinMonster account. All you need to do is log in and click on the API link.

Link api OptinMonster

Then copy and paste the API username and key in the settings page of the OptinMonster plugin and click on the “Login” button.

Once you are successfully connected, you must click on the button " Create a new Optin ».

OptinMonster Creating a new Optin

This will take you to the OptinMonster website. You must provide a title for your campaign and select your site from the drop-down menu.

You must also select "After Post/Inline" as the type of the online form (Optin). This will load some ready-to-use templates in the right column. Click on a model to use it as a starting point.

selection of Optin Monster models

It will open the interface for creating forms OptinMonster where you can customize the appearance of your "optin" and configure its settings.

Feel free to customize it as you wish.

Manufacturer Optin Monster

Then you have to click on the menu « optin And scroll down to block the content of the article. Activate content blocking for this optin by clicking on " On / Off ».

enabling blocked content OptinMonster

By activating this you will be able to determine how you want to block the content. First you need to choose a content blocking method.

You can use obfuscation that scrambles the content, or deletion that removes the content entirely.

OPtinMonster lock option

You should also change the duration of the success cookie to 0. This will prevent cookies from being set until users submit the online form.

After that go through the onboarding setting to connect your email marketing service and also configure the analytics settings.

Once you're done, click the Save button on the top right corner of the builder to save your settings.

Save form optin Monster

Now you need to visit your WordPress site and click on the OptinMonster menu.

You will see your content with a lock in the list of forms. If you don't see it, refresh the content.

Optin monster form

Move your mouse over the title, then click the edit button.

On the next page, click the checkbox option " Enable Optin on site ».

Optin activation on the OptinMonster site

Do not forget to click the Save All button at the bottom of the page.

Then you have to click on the OptinMonster menu again to go back to the Optin list. This time you have to copy the "optin" slug.

Copy the slug of an optin

Now, you must edit the article on which you want to enable content locking. And add this shortcode to your content (after the first paragraph).

Replace the optin slug with the one you copied.

creating an optin editing a WordPRess page

Now you can save and publish your article or page. Visit it and you will see that the content is actually protected.

How to lock all items

If you want to automatically add content lock to all your WordPress articles, then there is an easier way to do it.

Just install and activate the plugin " Insert Post Ads ».

After activation, you must visit the location " Post Adverts> Settings To configure the plugin.

Post-advert settings WordPress

Select where you want to enable ads: on posts or pages, then click the " Save settings ».

Now you have to visit " Post Adverts> Add New To add a new page. Provide, then add the create shortcode with OptinMonster.

Editing WordPress ads

Under the "Show ad" menu, you can select to show it before content or after the first paragraph.

That's all, the plugin will activate the lock for all the articles in your WordPress blog.

That's it for this tutorial. Feel free to share it with your friends on your favorite social networks.