Add Your Logo in the WordPress Dashboard

<?php add_action('admin_head', 'ah_custom_logo'); function ah_custom_logo() { echo ' <style type="text/css"> #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/custom-logo.png) !important; } </style> '; }
From time to time, this code can be very interesting, either because you want to individualise your website, or because you’re setting up a website for a customer.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.