By default, when you enable the private network, the logos of the registration and login pages will not redirect to the home page, but you can use the following function code to help you add the link. Please see the steps below:


Note: Make sure to have a complete site backup before proceeding


    1. Go to Appearance > Theme Editor.

    2. Under Select theme to edit, choose (BuddyBoss Child/whatever theme is active), then click Select.

    3. Below Theme Files, select Theme Functions (functions.php).

    4. Append the code just before the closing PHP tag “?>”:

function custom_logo_login_link() {
$base_url = "'".get_site_url()."'";
    echo '<script>
    jQuery( document ).ready( function () {
        var base_url = '.$base_url.';
        jQuery( "#login h1" ).wrap("<div></div>");
        jQuery( "#login h1 a" ).prop("href",base_url);

    });
    </script>
    <style>
    body.login.login-split-page #login h1 a {
        margin-left:auto
    }
    </style>';
}
add_action('login_head', 'custom_logo_login_link');


function custom_logo_registration_link() {
$base_url = "'".get_site_url()."'";
echo '<script>
    jQuery( document ).ready( function () {
        var base_url = '.$base_url.';
        jQuery( ".register-section-logo img" ).wrap("<a></a>");
       jQuery( ".register-section-logo a" ).prop("href",base_url);

    });
    </script>';
}

add_action('wp_footer', 'custom_logo_registration_link');


    5. Click Update File to save the changes.


Note: Any modifications are considered as custom work already. Know more about our Support Policy here: https://www.buddyboss.com/support-policy/