Skip to content

Instantly share code, notes, and snippets.

@tobedoit
Created November 26, 2012 06:36
Show Gist options
  • Save tobedoit/4146871 to your computer and use it in GitHub Desktop.
Save tobedoit/4146871 to your computer and use it in GitHub Desktop.
Wordpress: Login Dashboard Modification
/* *************************************************************************************
** Dashboard Modification *********************************************************** */
/* !로그인/회원가입 대시보드 수정 ******************************************************* */
/* to change the logo */
function my_login_logo() { ?>
<style type="text/css">
body.login { background-color: #f9f9f9; height: auto !important; }
body.login div#login { padding-top: 55px !important; }
body.login div#login h1 { position: relative; }
body.login div#login h1 a {
background-image: url(<?php echo get_bloginfo( 'template_directory' ) ?>/images/logo-recent.png) !important;
background-size: 111px 109px !important;
height: 109px !important;
display: block;
}
body.login input.button-primary, button.button-primary, a.button-primary { border-color: #8cbf34; background: #9bd734; }
body.login #nav a, body.login #backtoblog a { color: #b5763e !important; }
</style>
<?php }
add_action( 'login_enqueue_scripts', 'my_login_logo' );
/* to change the URL */
function my_login_logo_url() {
return get_bloginfo( 'url' );
}
add_filter( 'login_headerurl', 'my_login_logo_url' );
/* to change the title */
function my_login_logo_url_title() {
return get_option('blogname');
}
add_filter( 'login_headertitle', 'my_login_logo_url_title' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment