• [Moved from Your WordPress which is NOT a support forum.]

    Hello to everyone,
    I recently updated my wordpress to 3.8 and the default log-in logo doesn’t show on. Why does this happens?
    Also i had a custom logo of my client without any problem but now it looks squeezed. What is happening? Above is the code i have for the customized admin logo:
    // CUSTOM ADMIN LOGIN HEADER LOGO
    function my_custom_login_logo() {
    echo ‘<style type=”text/css”>
    h1 a { background-image:url(‘.get_bloginfo(‘template_directory’).’/images/wp_sign-in_logo.png) !important; }
    </style>’;
    }

    add_action(‘login_head’, ‘my_custom_login_logo’);

    Can somebody tell me why the customized logo squeezed and when i erase the code so i can see the default log-in logo it doesn’t show on?

    https://www.ads-software.com/plugins/wordpress/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter montecomis

    (@montecomis)

    I find out the solution a quarter ago. It work for me, but i didn’t find out why the default login logo doesn’t show on…if somebody has the answer…

    // CUSTOM ADMIN LOGIN HEADER LOGO
    function my_custom_login_logo() {
        echo '<style type="text/css">
            .login h1 a { background-image:url('.get_bloginfo('template_directory').'/images/wp_sign-in_logo.png) !important;
    		              background-size:269px 62px;
    					  width:269px;
    					  height:62px; }
        </style>';
    }
    
    add_action('login_head', 'my_custom_login_logo');

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Thank you !!

    Which wordpress .php file gets the above code? Edited.

    Thanks

    Thread Starter montecomis

    (@montecomis)

    The above code goes in functions.php file of theme’s child.

    Worked great! Thanks.

    After setting up a new account, receiving the email “greeting” and logging in I’ve been unable to locate a Dashboard. While I am NOT a computer wizard, neither am I totally new to the blogosphere. Clearly, I need help. Thank you.

    https://www.ads-software.com/support/profile/longhunter1796

    It works. Thank you very much

    montecomis,

    I was looking solution for this too.
    Your code works in Chrome but in Firefox, it’s still shrinked.. or i should say it’s cropped into the smaller size.

    Does it work for you in Firefox ?

    montecomis,

    I was looking solution for this too.
    Your code works in Chrome but in Firefox, it’s still shrinked.. or i should say it’s cropped into the smaller size.

    Does it work for you in Firefox ?

    Found the solution myself.
    Adding !important to background-size, width, and height property

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘3.8 wordpress logo login’ is closed to new replies.