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.

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)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year ago.

Assisted by: Waqar.

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

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.