Saturday, 15 February 2014

Add Custom Logo in Wp-admin Screen via Snippet

Hi There,

Some time our clients want's own logo on admin panel login screen then there are bunch of plugins available now a days, wanna try some codex ??

Then use below listed Snippet!!


Add this code to your theme's functions.php

<?php
// CUSTOM ADMIN LOGIN HEADER LOGO

function my_custom_login_logo()
{
    echo '<style  type="text/css"> h1 a {  background-image:url(' . get_bloginfo('template_directory') . '/images/logo_admin.png)  !important; } </style>';
}
add_action('login_head',  'my_custom_login_logo');
?>

Above mentioned GREEN COLOR's code showing you path from theme's images folder you can append it as you want...

That's all!!

Happy Programing :-)

No comments:

Post a Comment