skip to Main Content

Search WordPress Code Snippets – Quick Solutions for Developers


How to Customize the Login Logo

Change the WordPress login logo.

add_action('login_enqueue_scripts', 'codebykp_custom_login_logo');
function codebykp_custom_login_logo() {
    echo '<style type="text/css">
        #login h1 a {
            background-image: url(' . get_stylesheet_directory_uri() . '/images/custom-logo.png);
            width: auto;
            height: 100px;
            background-size: contain;
        }
    </style>';
}


I’m a WordPress developer with 10+ years of experience in WooCommerce and custom plugins. I combine technical expertise with design flair to help you create standout, user-friendly websites. Let’s transform your digital presence!

Back To Top