Quantcast
Channel: TaimoorSultan.com » Tutorials
Viewing all articles
Browse latest Browse all 18

Change Login Page Logo in WordPress

$
0
0

WordPress is a marvelous platform for bloggers. While blogging you may have your own brand name. WordPress allows to alter your blog in almost every manner and its same with the WordPress login page. You may want to change the logo of WordPress to your own custom logo because it looks more professional. So, follow below steps to add change the logo with your custom brand logo.

1. Go to your WordPress Admin Dashboard >>> Appearance >>> Editor.

2. Click on the File Theme Functions (functions.php) and it will opened for editing.

3. Paste this code into functions.php and update it.

{code type=php}

function custom_loginlogo() {
echo ‘<style type=”text/css”>
h1 a {background-image: url(‘.get_bloginfo(‘template_directory’).’/images/login_logo.png) !important; }
</style>’;
}
add_action(‘login_head’, ‘custom_loginlogo’);

{/code}

4. The logo which you want to show there, upload it to ‘images’ folder of your theme. And name it login_logo and it should be a .png file.

5. Or you can change the path of the logo from the above code. Just edit /images/login_logo.png with the desired image path.

6. Now you can check and your WordPress Login page will show a new logo of your brand.

You may also like to Change URL of Login Page Logo to your own website. (By default this URL points to WordPress website)

The post Change Login Page Logo in WordPress appeared first on TaimoorSultan.com.


Viewing all articles
Browse latest Browse all 18

Trending Articles