We just added content protection by selecting a user role on a page and that’s content protection at its simplest. I’m going to show you another way to protect the content instead of this type of content protection where everything is protected and all you see is this message.
Customize the Message for Visitors
First, let’s change this message. Rather than saying, “Sorry but you do not have permission to view this content. We could change that message to say something like “We’re sorry but the content of this page is only for Joanna’s distributors. If you’re interested in becoming a distributor for Joanna, click this link”. That is something that we can easily do here in the plugin settings.
Change the Automatic Default Message
If we come back down here to Settings and Members, this is the automatic default message and so we can say, “I’m sorry but the content on this page is just only available to my distributors. For information about becoming one of my distributors please visit this link”.
Then what we could do is come over to her Partner page, come back to this and then we can just make that a tag, a href= and then close out the a tag. So we now have a link.
Update those settings and reload the page. Now what you see is “I’m sorry but the content on this page is just only available to my distributors. For information about becoming one of my distributors please visit this link”. There you go and so now, you get sent somewhere specific rather than just saying there’s nothing available for you here.
Customize Message on a Page by Page Basis
You can actually do that on a page by page basis as well. Let’s go back to the page that we’re working on. Come back over to our posts and back down to that Business Builders. We can down here in Content Protection just change the error message, “Rats!”, and say okay.
When we update this what you’ll see is that the message on this page changes and becomes that custom message even though we have an automatic default one.
Although, look at that, this doesn’t take HTML which is interesting. I assumed that this would take HTML but it doesn’t. So your custom error message is going to be that, “Rats!” and it only applies to that page.
So that’s the process for this really at its simplest form. You install the plugin, you create a user role, you manually create your users and assign them to that user role. Then you protect your post content for that user role. That’s it at its simplest form.