Display messages to users using Elementor styled templates

Support Request

If you need help with restrict, submit a support request, and we will get back to you shortly.

Submit a Support Request

As explained in our documentation here, within the General area of Restrict, you can set up custom messages that will be displayed to users that do not fulfill required criteria for viewing certain content. Now, by default, these messages are mainly text oriented, without an option to style them significantly except for using WordPress’ standard formatting and HTML or adding some images or other media files. However, this might not be everybody’s cup of tea and we certainly understand that you might want to go further in styling of these messages using, for example, some page builder.

So, from the version 2.0.9 of Restrict, we have added support for plugins such as Shortcodes for Elementor, AnyWhere Elementor and similar plugins that are using shortcodes to display Elementor pages and templates.

 

How to do this?

Before you start, make sure that you have installed Elementor page builder and one of the to plugins Shortcodes for Elementor or AnyWhere Elementor, whichever you like best. All of these plugins are free or at least have a free version with sufficient functionality to make this happen.

With this, you can then go on and create a template within the Shortcode for Elementor or AnyWhere Elementor area.

Whichever of the two plugins you have chose to use, the process is basically the same and has more or less the same options with the only difference being the shortcode itself. Of course, when creating a template, you should click Edit with Elementor button to actually use elementor to create a template.

The key part here is the shortcode in the upper right corner where you will be able to find a shortcode for your template. Once you copy this shortcode, you can display this template on any of your pages or posts and, of course, within the content of the messages in Restrict’s General area.

So, simply copy this shortcode…

…and then paste it to the content area of the message within Restrict -> General area where you want this template to appear:

With this, done, you will have your Elementor template displayed as a message to the users that are not allowed to access certain restricted content. Of course, you can also add some other content here except for the shortcode if you want or need but the point is that you can now have rather nicely styled message using all the elements that Elementor has to offer and create them using Elementor’s simple drag’n’drop builder.

So, instead of having just a plain message you can have the Elementor designed template such as the one in the example below:

*Please note that the looks will vastly vary depending on the design and layout you opted for when creating a template in Elementor. This is just the example that uses a few basic Elementor elements.