Answer the question
In order to leave comments, you need to log in
How to put your logo in Wordpress?
Hello everyone, I have such a question, so I installed the template on my WP site, it has a standard logo, that is, the name of my site, I want to put my logo instead, that is, I prepared an image (logo) in Photoshop, I don’t know how to put it, rummaged in the header.php file but nothing could be done (HELP!
Answer the question
In order to leave comments, you need to log in
Add this code to your theme's functions.php file
function my_custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image:url(' . get_bloginfo('template_directory') . '/images/logo.png) !important; }
</style>';
}
add_action('login_head', 'my_custom_login_logo');
Bad search. See page source code. Find the class or id of the block that contains the site title. then look for this class or id in the template files (search in the folder files, if that).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question