Best Practices - Restricting Content

Hello,

So i’m using a woocommerce plugin for a membership site. They have a shortcode that you can restrict content. But I understand X-theme best practice is not to use your shortcodes for elements.

[restricted-content] <PUT CONTENT HERE [restricted-content]

The restricted content I want to use is built with an xtheme element.

What would be the best way to restrict content with xtheme? or in this case i have to use an xtheme shortcode?

Thanks!

Hello GarlicFox,

Thanks for writing in! Assuming that the contents of the <PUT CONTENT HERE> are just plain text, you can make use of the provided shortcode out of the box. Just simply insert it in a content area element and it should work. Alternatively, if you want to have more control over the design of the content that you want to restrict, you can utilize the new Condition feature that you can find in each of the elements. Please check out this documentation to know more about it:

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.