How to change WordPress login logo to yours

WordPress login logo

WordPress automatically sets its default logo on the login page for new installations. It is not a problem if you are the only one with administrator access. However, if you run an e-commerce store or membership site, you’ll need to replace the default WordPress login logo with your custom logo, as this helps build your brand identity.

The logo is one of the main things you need to pay close attention to. Every large company has a memorable and recognizable logo. More and more businesses are becoming convinced of this and are starting to invest more money in web design. In our blog, you can read how to create the perfect logo.

The logo of your brand is of great importance for the success of your business. If you want to achieve the best possible results, it is crucial to invest in its quality. If you are unable to create a logo that you are happy with, the best option is to contact professionals. They will create the perfect logo for you and your brand.

wordpress logo

How to Change WordPress Login Page Logo Using the functions.php File

Before you make any code changes in the functions.php file, make sure that you back up your site. In case you make a mistake, your site will be reverted to the previous version.

First, log in to your website’s cPanel, click on the “File Manager” option.

Navigate to the “wp-content” folder, open “Themes,” choose “Theme-name.”

Next, find your functions.php file and right-click it. Select the “Edit” option.

A new tab opens. Copy and paste the following code snippet into the functions.php file.

function custom_loginlogo() {

echo ‘<style type=”text/css”>

h1 a {background-image: url(‘.get_bloginfo(‘template_directory’).’/images/My_logo.png) !important; }

</style>’;

}

add_action(‘login_head’, ‘custom_loginlogo’);

Within the code, replace the “My_logo.png” with the file name of your logo.

Click the “Save changes” button.

The next step is uploading your logo image file.

Open the “wp-content” folder. In the same location as the functions.php file, you see the “Images” folder.

Click on the “Images” folder and upload your logo image file into it. In case you are a beginner and not quite adventurous when it comes to code-editing, using WordPress Appearance Editor seems ideal.

change wordpress login logo

How to Change WordPress Login Page Logo Using Appearance Editor

  1. Navigate to Appearance > Customize
  2. Go to the Site Identity menu
  3. Click on the box labeled “Select logo”
  4. Upload your logo image file
  5. Click on the Publish button
  6. Once done, your new logo will be displayed on your site.
change wordpress login logo

If you have additional questions or need help, we at Dreamtech are always available. If you need a logo for your site or a new web design, we will help you. We know how to create a web design and logo that you will fall in love with. We will do our best to achieve success. If you are interested in our creative services, you can see what we offer. If you have additional questions, contact us or make an appointment for a free consultation.

Get the scoop on what's new

Subscribe to get the latest blogs, guides, industry reports, events, and all things subscription!*