WordPress.org

Ready to get started?Download WordPress

Forums

DantoTube
3.8 wordpress logo login (10 posts)

  1. montecomis
    Member
    Posted 7 months ago #

    [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?

    http://wordpress.org/plugins/wordpress/

  2. montecomis
    Member
    Posted 7 months ago #

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

  3. Abdulaziz AlJassar
    Member
    Posted 6 months ago #

    Thank you !!

  4. PeterMikeMercado
    Member
    Posted 6 months ago #

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

    Thanks

  5. montecomis
    Member
    Posted 6 months ago #

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

  6. PeterMikeMercado
    Member
    Posted 6 months ago #

    Worked great! Thanks.

  7. longhunter1796
    Member
    Posted 6 months ago #

    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.

    http://wordpress.org/support/profile/longhunter1796

  8. aralar
    Member
    Posted 5 months ago #

    It works. Thank you very much

  9. rei15
    Member
    Posted 3 months ago #

    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 ?

  10. rei15
    Member
    Posted 3 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic