Created
September 2, 2016 12:19
-
-
Save VelichkoAlexander/3faf7a3c3d10368af7ded44074abac9a to your computer and use it in GitHub Desktop.
Персональный логотип и ссылка на вход в админ панель Wordpress
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 my_login_logo(){ | |
echo ' | |
<style type="text/css"> | |
#login h1 a { background: url("<?php echo get_template_directory_uri(); ?>/images/logo.png") no-repeat 50% 50% !important; } | |
</style>'; | |
} | |
add_action('login_head', 'my_login_logo'); | |
add_filter( 'login_headerurl', create_function('', 'return get_home_url();') ); | |
add_filter( 'login_headertitle', create_function('', 'return false;') ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment