February 16, 2022
Setup a stylesheet for the default login screen, and update the heading url.
Functions.php
function custom_login_stylesheet() {
wp_enqueue_style( 'custom-login', get_stylesheet_directory_uri() . '/extend-login.css' ); // register stylesheet for this area
// wp_enqueue_script( 'custom-login', get_stylesheet_directory_uri() . '/theme-login.js' ); // js edits optional
}
add_action( 'login_enqueue_scripts', 'custom_login_stylesheet' );
// redirect header to custom url
add_filter('login_headerurl','custom_theme_login_link');
function custom_theme_login_link() {
return home_url();
}
Create the extend-login.css file and add your custom styles to it.