• Resolved brodwen

    (@brodwen)


    I really wanted to restrict my homepage or the whole page so that only logged-in users can access it.

    I already changed the Global Site Access and choose ‘Site accessible to logged-in users’ in Ultimate Member > Settings > Access

    Still, the home page is accessible.

    I even restrict the page Home so only logged-in users can access the page.

    Please help.
    Why is it not working?

    Theme: OceanWP Child
    Ultimate Member 2.1.15
    Elementor Pro

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brodwen

    Did you uncheck the option “Allow Homepage to be accessible” in Ultimate Member > Settings > Access?

    Regards,

    Thread Starter brodwen

    (@brodwen)

    Yes, I unchecked the setting “Allow Homepage to be accessible”

    I also restrict the page so that only logged-in users can access it.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brodwen

    Could you please confirm if this issue still occurs with a default WP Theme? I suggest just adding a redirection code to achieve this temporarily.

    add_action("template_redirect", function(){
        if( is_home() || is_front_page() ){
             if( ! is_user_logged_in() ){
                 wp_redirect("/custom-page"); exit;
             } 
        } 
    });

    Regards,

    Thread Starter brodwen

    (@brodwen)

    Yes, It still occurs.

    Added the code snippet in my child’s template function works. Thank you!

    Could you please tell me when will this be fixed?

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @brodwen

    Does it only occur with an administrator account? If so, it is by design.

    Does the homepage still accessible with a subscriber/member account?

    Regardsm

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey there!

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Global Site Access Is Not Working’ is closed to new replies.