Skip to content

WPcademy

Linux & Wordpress Tutorials

  • Home
  • WordPress
    • WordPress Login
    • WordPress Hosting
    • WordPress Plugins
    • WordPress SEO
    • WordPress Themes
    • WordPress Tutorials
  • Linux Tutorials
    • Centos
    • Ubuntu
  • Tutorials
    • How to
    • Programming
  • Security
  • About Us
  • Contact Us

Tag: change wordpress logo url size link

Posted on October 17, 2019

How to Change the Login Logo in WordPress

why not give your wordpress website a custom login logo to match the branding and keep the users from feeling alienated. In this article, we will learn how to change the login logo in WordPress.

First you need to open your theme’s functions.php file and then paste the following code:

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');

Don’t forget to keep a transparent logo file in your theme’s images folder either. It should be named login_logo.png or anything else if you decide to change the image path.

You might also like: How to fix WordPress Login issues

100 dollar free credit on digitalocean cloud server

Latest Tutorials

  • How to install and configure shadowsocks in ubuntu machine
  • Initial Server Setup with Ubuntu
  • How to connect to a remote MySQL database using Linux terminal
  • How To Install OpenEMR on Ubuntu 20.04 with a LAMP Stack (Apache, MySQL, PHP)
  • How to Install WordPress with LEMP on Ubuntu 20.04
  • How To Use Traefik v2 as a Reverse Proxy for Docker Containers on Ubuntu 20.04
  • How To Set Up Physical Streaming Replication with PostgreSQL 12 on Ubuntu 20.04
  • How To Install PostgreSQL on Ubuntu 20.04 [Quickstart]
  • How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04
  • How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 20.04
  • Facebook
  • YouTube
Privacy Policy Proudly powered by WordPress