Hello arsilan,
Hope you are well. If you have already restricted package from Allow Access
option as the image here,
https://postimg.cc/vc86NcmS
and you are also able to customize Login Required Message
as the image here,
https://postimg.cc/FdDhdsQ7
For PDF preview can you check our this add-on, https://www.wpdownloadmanager.com/download/wordpress-pdf-viewer/
Please kindly check and let me know.
Thank you and kind regards
Thread Starter
A
(@arsilan)
Hi Nayeem,
Thank you for providing screenshots to customize the login message. It’s working well, and we can now redirect users to the login form as intended.
However, we’ve encountered an issue: when a user logs in or signs up from a specific file or category, they’re redirected to the profile page instead of returning to the file or category they initially left to log in.
Is there a way to redirect users back to the specific file or category they started from?
Thanks, as always, for your help!
You can try adding href this YOUR_SITE_URL/wp-login.php?redirect_to=[this_url]
please kindly check and let me know.
Thank you and kind regards