- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
WordPress. How to customize login page logo
October 12, 2016
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.
Open the functions.php file from your theme with the editor and place the following lines below:
// 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');
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.
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 logoIn case you’re searching for premium themes to build a website from scratch, look through the Best WordPress Themes 2017.