Last active
March 3, 2017 18:17
-
-
Save bhubbard/4288810 to your computer and use it in GitHub Desktop.
rgyry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
// Custom Login Page Styles | |
################################################################################ | |
// Custom Login CSS | |
function imfza_custom_login() { | |
wp_register_style( 'custom-login', get_template_directory_uri() . '/assets/css/custom-login.css', true, 'all' ); | |
wp_enqueue_style( 'custom-login' ); | |
remove_filter( 'wp_admin_css','wp_admin_css' ); | |
} | |
add_action('login_head', 'imfza_custom_login'); | |
// changing the login page URL | |
function imfza_wp_login_url(){ | |
return (home_url()); // Default Site URL | |
} | |
add_filter('login_headerurl', 'imfza_wp_login_url'); | |
// changing the login page URL hover text | |
function imfza_wp_login_title(){ | |
return (get_option('blogname')); // Hides "Powered by WordPress" | |
} | |
add_filter('login_headertitle', 'imfza_wp_login_title'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment