Site logo

Archived topic

Logo wp-admin does not change

8 replies · Started by Benjamin on May 30, 2016

Viewing posts 1–9 of 9

Hi Tom,

The logo of the login does not change, I'm using code snippets and function I use is

generate_login_logo function () {?>
     <Style type = "text / css">
         .login h1 a {
             background-image: url ('my url image');
         }
     </ Style>
<? Php}
add_action ('login_enqueue_scripts', 'generate_login_logo');

I clarify that worked well, but for some reason stopped working, will upgrade any generatepress or wordpress 4.5?

Thank you!

Looks like they made it so you have to be a little more specific.

Here's what I'm using:

function generate_login_logo() { ?>
    <style type="text/css">
        body.login h1 a {
            background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/gp-logo.png);
        }
    </style>
<?php }
add_action( 'login_enqueue_scripts', 'generate_login_logo' );

now is working, I needed to add ".body"

Thanks Tom and apologize for my English;)

Your English is good! :)

Glad I could help.

Hello :)
How to get path of the logo set in customizer?
I think that would be a more universal approach.
Or even better, that would be wonderful if it could be done directly in the customizer. :)

Hello there,

May you start a new topic with regards to this?

Let us know as well what you want to achieve there.

This archived topic is closed to new replies.