How to lock only one divi module on a public webpage?

Hello,

I would love to restrict the access to Patron only for some part of my website.

I use entierly Divi Builder and only pages (No posts).

On this page for example i would like to have the complete page public, except the statistics tables module. Is there a way to do that?

Then the idea for me would be to replicate this on all pages that have stats (more than 50).

I already have the patreon plugin installed and it works for me to remove ads.

Sincerely,
Alex

Patron Plugin Pro (a premium addon to Patreon WordPress) allows parts of your posts to be gated and unlocked, but when you put the Divi module inside that gating shortcode, it may hide entire module until the patron unlocks the content. But that’s probably what you want.

If that module is generated with code, you would need to use custom gating code to wrap it in:

Thank you for your answer.

I tried to use the gating code but it does not seems to restrict the access. I tried with multiple devices not loged into Patreon and still was able to see the content.

Do i need to instal a library or something to get this patreon_Gate ?

Here is my code. I use a shortcode for the table and it’s showing correctly, but as if i was a patron.

Well i actually did not do anything and now it works!

Last question: how can i customize the message text, color and center it?

1 Like

Likely it was either your cache or you have pasted the code in the wrong place before. But if you just c/ped PHP code into your post and it was automatically evaluated thanks to a plugin you have or something, that’s not really advisable - better place the code into page or post’s template.