• Resolved crewcabins

    (@crewcabins)


    Hi support team / kevin?

    Is there a way to utilise your plugin so that it still loads the main home page as normal but forces the user to login / register on any click on the home page?

    Also my website uses the yith login popup plugin so im not using the standard wordpress login hence me asking this question as I cant just install and activate as it forces users to login using the stock wordpress login BUT my website does not actually use that apart from for letting Admin access the backend only. It uses the Yith login popup plugin for customers and there is no decicated page, just the popup…..

    I also noticed Kevin you replied to another similar post a few years back….

    https://stackoverflow.com/questions/25570301/wordpress-force-user-to-login-by-clicking-on-a-link-which-refers-to-public-post

    Basically my request is very similar to this where the website loads the main index.php and on any click, it forces user to use my yith login popup to either login or register and then I can redirect them back to my homepage which will allow them full access upon login.

    Please any help will be greatly appreciated ??

    • This topic was modified 2 years, 10 months ago by crewcabins.
Viewing 1 replies (of 1 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for trying Force Login!

    You can use Force Login’s bypass filter to allow public access to the homepage.

    Force Login will redirect visits to any other page to the WordPress login screen based on the wp_login_url() function. You could change what your site’s login URL is everywhere by using the login_url filter if you don’t want to send them to the default WordPress login screen.

    Additionally, you might need to code some custom Javascript if you want to change the behavior of links on your bypassed homepage for non-logged-in users.

    I recommend you hire a web developer to help you customize this for your site.

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Make home page load but force user to login on any click?’ is closed to new replies.