Skip to content

Instantly share code, notes, and snippets.

@oritromax
Created March 6, 2013 01:24
Show Gist options
  • Save oritromax/5095970 to your computer and use it in GitHub Desktop.
Save oritromax/5095970 to your computer and use it in GitHub Desktop.
All Wordpress Tricks Related with login page
function custom_login_logo() {
echo '<style type="text/css">h1 a { background: url(http://www.abcd.com/image.png) 50% 50% no-repeat !important; }</style>';
}
add_action('login_head', 'custom_login_logo');
function change_wp_login_url() {
echo bloginfo('url');
}
add_filter('login_headerurl', 'change_wp_login_url');
function change_wp_login_title() {
echo get_option('blogname');
}
add_filter('login_headertitle', 'change_wp_login_title');
function change_wp_login_title() {
echo "Some Text";
}
add_filter('login_headertitle', 'change_wp_login_title');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment