custom admin logo problem
-
I’m trying to customize the admin dashboard of the site I’m developing and want to change the WordPress logo to my logo. I’ve researched a lot of sites as well as these forums and found the same code. I don’t know what I’m doing incorrect but can’t get the logo to change. Here is the code I’m using in my functions.php file:
function custom_logo() { echo '<style type="text/css"> #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/ logo.png) !important; } </style>'; } add_action('admin_head', 'custom_logo');
I’ve tried uploading the images to various locations and don’t seem to be able to get it to work. I created an images folder where all the themes are located and placed the logo there. I uploaded the logo to the images folder of the current theme. I created an images folder in the root directory and uploaded the image there. I changed the image name to just “logo” so that I knew I wasn’t misspelling it.
- The topic ‘custom admin logo problem’ is closed to new replies.