[resolved] Replace WordPress logo (5 posts)

  1. pfernandezm59
    Posted 6 years ago #

    I would like to know if it's possible to change the WordPress logo in the login.php file, in order to replace it with my blog's logo. Any suggestions how to do it?
    Thank youvery much!!

  2. esmi
    Forum Moderator
    Posted 6 years ago #

  3. alism
    Posted 6 years ago #

    The image/login screen is part of core, so you'll make your life more difficult if you edit it, as you'll need to do the same thing every time you upgrade and that'll be a pain in the...

    However, there is a plugin...

  4. pfernandezm59
    Posted 6 years ago #

    Thank You!!!.

  5. mtw28
    Posted 6 years ago #

    You can also add two lines of code and a .css file to make the changes directly in your theme's function.php file if you're comfortable with that approach.

    Here is the code to add to function.php:

    function custom_login() {
    	echo '<link rel="stylesheet" type="text/css" href="' . get_settings('template_url') . 'custom-login.css" />';
    add_action('login_head', 'custom_login');

    Then create custom-login.css in your theme directory and put this styling in it with your custom logo filename and its width and height:

    h1 a {
    background:url(custom_logo.jpg) no-repeat;

    Upload your logo to the theme directory and you're done.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.