Skip Navigation

[Resolved] How to show a modal when trying to access restricted content

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 8.72 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Author
Posts
#2617685
Screen Shot 2023-06-21 at 4.20.45 PM.png
Screen Shot 2023-06-21 at 4.20.37 PM.png

Hi all,

The site that we are building is a member site that will show previews of content that is only accessible by paid members. I would like to have a flow similar to what National Geographic has. If you click on an article that has a lock, the modal comes to allow you to either join or login. How can I achieve something like this?

Go to this page to see this in action: hidden link

Thanks!

#2617819

Hi,

Toolset plugins do offer control to show different content templates to visitors and members, as explained in this guide:
https://toolset.com/lesson-placement/lesson-placements-1645291-1651873/

You can use the Toolset's login form shortcode ( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-login-form ) in the template for the visitors, however, there is no built-in feature available to show it inside the modal window.

If you have the Bootstrap 4 library enabled on the website, you can use its modal feature ( ref: hidden link ).

Alternatively, you can use the modal feature from either your theme, page builder, or any other third-party plugin.

I hope this helps and please let me know if you need further assistance.

regards,
Waqar