/** * Legacy RW login CSS conflicts with HMG Site Tools branded login. * Site Tools owns the login screen when the plugin is installed. */ function rw_child_login_styles() { if ( defined( 'HMG_SITE_TOOLS_VERSION' ) ) { return; } wp_enqueue_style( 'rw-custom-login', get_stylesheet_directory_uri() . '/login/custom-login-styles.css', array( 'login' ) ); } add_action( 'login_enqueue_scripts', 'rw_child_login_styles' );