B
B
Bearax2015-12-31 09:48:12
WordPress
Bearax, 2015-12-31 09:48:12

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

4 answer(s)
J
Jenya Jenya, 2015-01-01
@Bearax

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');

B
Boris Yakushev, 2015-12-31
@za4me

Tyts. Google provides a sea of ​​information for this query.

A
Anton, 2015-12-31
@hummingbird

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).

P
poshtaru, 2016-01-09
@poshtaru

What's the topic? As far as I understand, you don’t have the function to upload the logo through the theme settings?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question