If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

WordPress. How to customize login page logo

Hello, this tutorial will show you how to customize the login page logo in WordPress.

When you access the WordPress admin panel, the first thing you notice is the login page with a WordPress logo. Wouldn’t it be better if this page had your company logo?

There are many simpler ways to do this using WordPress plugins that allow other customization options too.

But we would prefer setting it using the powerful WordPress functions.php file.

  1. Open the functions.php file from your theme with the editor and place the following lines below:

    Wordpress_How_to_customize_login_page_logo_1

    // 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/logo_admin.png)  !important; } '</style'>';
    }
    add_action('login_head',  'my_custom_login_logo'); 
  2. Upload the ‘logo_admin.png’ file to the /wp-content/themes/images/ folder then and check your site. We have successfully replaced default WordPress logo with custom one.

    Wordpress_How_to_customize_login_page_logo_2

  3. Thank you for checking this tutorial. Now you know how to customize the login page logo.

    Feel free to check the detailed video tutorial below:

    WordPress. How to customize login page logo

    In case you’re searching for premium themes to build a website from scratch, look through the Best WordPress Themes 2017.