Help with Login Image Snippet
-
Hey guys I found this snippet online to replace the login image but it isn’t working and I was wondering if someone with some php knowledge could explain why? I currently have a plugin to do the same thing but I am trying to reduce my plugins as the site is getting slower.
function custom_login_logo() { echo '<style type="text/css"> h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; } </style>'; } add_action('login_head', 'custom_login_logo');
What I am seeing is the standard wordpress logo with the styles showing in the top of the window. I have added this function in my child themes function.php file and created the images folder (and uploaded the appropriate image) also in my child themes directory.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Help with Login Image Snippet’ is closed to new replies.