[Defender Pro] Masked URL changing design.

Hi, if I enable Defender Pro -> Masked URL it changes the layout of the log in page.

  • Dimitris Kalliris
    • Support Team Lead

    Hello there Daniel

    I was able to replicate the same issue in my end using BuddyBoss and their theme options to add a background image into the login page. So this is actually a conflict with the current theme. I’ve already created a task for our Defender developers so they can investigate if we can include a hotfix in the next plugin release. For any updates on this, we’ll keep you posted here.

    Thank you,
    Dimitris

  • Anton Shulga
    • WP developer

    Hey Daniel ,

    There is a behavior because the required style class is added only for the default login page in the BuddyBoss theme.
    But it’s possible to fix it by adding code to the file functions.php of the BuddyBoss child theme or your custom file inside /wp-content/mu-plugins/:

    add_filter( 'login_body_class', 'mu_custom_login_classes' );
    function mu_custom_login_classes( $classes ) {
       if ( ! function_exists( 'buddyboss_theme_get_option' ) ) {
          return $classes;
       }
       if ( buddyboss_theme_get_option( 'boss_custom_login' )
          && buddyboss_theme_get_option( 'admin_login_background_switch' )
          && $GLOBALS[ 'pagenow' ] !== 'wp-login.php'
       ) {
             $classes[] = 'login-split-page';
             return $classes;
       }
       return $classes;
    }

    Best Regards
    Anton Shulga