How Can We Help?
< Back
You are here:
Print

How To Lock Any Part Of Your Website With Patron Plugin Pro

It’s possible to lock any section of the site, a widget, some content in widget, some piece of meta value shown in the header, footer, or even remote embedded content displayed somewhere by using custom code blocks and developer toggles.

The below code checks for patronage level, and if it is the amount you set in the function parameters, shows the content. This code can be put into header, or, for example in the theme element that shows webcomics in headers or widgets as meta values.

Click here to see raw code that you should use

Clicking the above link should open raw text in a new tab, which you should copy/paste exactly to where you want to gate your site. (ie, header, footer, custom pages). But you will need to correctly place it into where it needs to be. If you don’t know enough PHP to be able to do that, you should get help from a friend or contact us for professional (paid) help.

Table of Contents