Skip to content

Instantly share code, notes, and snippets.

@bhubbard
Last active March 3, 2017 18:17
Show Gist options
  • Save bhubbard/4288810 to your computer and use it in GitHub Desktop.
Save bhubbard/4288810 to your computer and use it in GitHub Desktop.
rgyry
################################################################################
// 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