I want to customize my website's "wp-admin" page . I want to use my own logo instead of WordPress logo And background image . Please tell me how to do it. If you include some examples that will help. Thanks


There are various plugins that allow you to do this. Just search for 'login' in the plugin search.

However, if you'd like to do this yourself with code in your child theme you can use the following code taken straight from the WordPress Codex page on Customizing the Login Form:

function my_login_logo() { ?>
    <style type="text/css">
        #login h1 a, .login h1 a {
            background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/site-login-logo.png);
        background-size: 320px 65px;
        background-repeat: no-repeat;
            padding-bottom: 30px;
<?php }
add_action( 'login_enqueue_scripts', 'my_login_logo' );

You can also add your other custom CSS in the code above to change the background colour or image by targeting the <body> HTML tag in your CSS

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.