• Resolved rickk55tn

    (@rickk55tn)


    Hi,

    I’ve tried to find a solution to using Custom Login Page Customizer as my homepage. Unfortunately, I can’t seem to find a way to do that. Can anyone make any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @rickk55tn,

    As much as I would love to help this is not an option the plugin has at the moment.
    Thank you for understanding!

    All the best,
    Mihaela

    Although not an option of the plugin, if you have access to your .htaccess file you could potentially use a redirect to accomplish what you’re wanting. There might be a cpanel option or a plugin that can assist with this, as well, depending on your host.

    I don’t want to link any articles, because I’m not sure of the policies regarding that here, but if you Google “Redirect Only Root Directory or Index Page with .htaccess” you’ll find a wealth of resources that can assist with this.

    If you want to make it the homepage (i.e. restrict access to any page on your website unless logged in) you can add the below function to your child theme functions.php – the below example only allows access to the password reset and privacy policy when not logged in, but the names might be different depending on your settings:

    function wpse_131562_redirect() {

    $object = get_queried_object();
    if ( ! is_user_logged_in() && ( ! $object || ‘my-account’ !== $object->post_name ) && ( ! $object || ‘privacy-policy’ !== $object->post_name ) ) {
    auth_redirect();

    }
    }
    add_action(‘template_redirect’, ‘wpse_131562_redirect’);

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use Custom Login Page Customizer As Homepage’ is closed to new replies.