Content lock

You can hide content of page or all site content until the user clicked to any of social share buttons, by using function Content lock (PRO feature).

To do it you need to follow next steps:

  1. Put content which you want to hide into html container with unique class name.

    For example, we use container:

    <div class="content_lock">Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</div>

  2. Open Main tab in social buttons project.
  3. Click Content lock.

    Content Lock Option
  4. Enter class name in Element class field.
  5. Click Save button.

Enter Element class

WPCom_Markdown class is not exists

Now on site pages with locked content the users will see the message stating that they need to share this page to unlock content.

Share to unlock Content

After the user clicks on one of social button a locked content would displayed on the page all the time.

Lock Content Option

You can check this page. It with content lock feature. You will be able to see the content of this page – only after you will share this page.

Latest Articles