Created
June 6, 2017 19:17
-
-
Save iqbalmauludy/a9922e559c09e5dbbb00dbadd69fe3ca to your computer and use it in GitHub Desktop.
Cara Mengganti WordPress Login Logo Secara Manual
This file contains hidden or 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
function custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a {background-image: url('.get_bloginfo('template_directory').'/images/logo-login.png) !important; } | |
</style>'; | |
} | |
add_action('login_head', 'custom_login_logo'); | |
//hook into the administrative header output | |
add_action('wp_before_admin_bar_render', 'custom_login_logo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment