This is great to add more branding to your site or for your client’s site it gets more attractive to your user when you take care of such things to improve your branding.
First, add the logo to your theme’s images folder if you don’t find any such folder then create it and add the logo. Don’t forget to replace the name custom-logo with your logo name.
Add to function.php file in child theme.

// customize login logo

function wps_custom_login_logo() {

    echo '<style type="text/css">
    h1 a { background 
    !important; }

    add_action('login_head', 'wps_custom_login_logo');

Here we are displaying our logo through the background-image property and passing the path of the image.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top