• Mobile
  • Operating Systems
  • Tutorials
    • Consumer tech
  • Reviews
  • Information Security
  • Games
  • Request Help
Nerdy Nerd Nerdz
  • January 15th, 2021
  • Log in
Nerdy Nerd Nerdz
  • Mobile
  • Operating Systems
  • Tutorials
    • Consumer tech
  • Reviews
  • Information Security
  • Games
  • Request Help
Home
WordPress

Replace WordPress Login Logo Without a Plugin

December 29th, 2013 J.R. Williams Featured, Tutorials, WordPress 0 comments

Image Courtesy of codex.wordpress.org

Image Courtesy of codex.wordpress.org

A you looking to strip your site of the generic WordPress branding and equip it with a look and feel that will add more of a professional website appearance? If you are a WordPress novice, there are several plugins available that will allow you to replace your login logo without any adverse risk. If you are one of those individuals who are hesitant about changing your logo manually, I recommend you check out the Custom Login Plugin located in the WordPress plugin repository.

For all the experienced WordPress users who don’t mind getting your hands dirty, follow the steps below to achieve a custom login page logo and url without the use of a plugin. In order to perform the steps below you will require access to your themes functions.php file. You can edit the file from your webserver control panel or any xml editor. I do not recommend you use notepad.

Warning: Create a back up your functions.php file before making any chances.

 

  1. Copy or upload your desired logo.png login logo to your current themes image directory. The location should be… theme/images/logo.png (theme=name of the theme you are using in WordPress. The logo must be a transparent png file and not a jpeg or bitmap image file type.
  2. To change the login logo, paste the following code in your current themes functions.php file
function my_login_logo() { ?>
    <style type="text/css">
        body.login div#login h1 a {
            background-image: url(<?php echo get_bloginfo( 'template_directory' ) ?>/images/login-logo.png);
            padding-bottom: 30px;
        }
    </style>
<?php }
add_action( 'login_enqueue_scripts', 'my_login_logo' );

3. To set the logo url to link to your web site when clicked instead of the defaut WordPress.org, past the following code after the code in step 2

// Use your own web site URL logo link
function my_logo_login(){
    return "http://nerdynerdnerdz.com/"; //<--replace with your URL here
}
add_filter( 'login_headerurl', 'my_logo_url' );
  • Tags
  • wordpress

Share This Article:

Facebook Twitter Google+ LinkedIn Pinterest
Next article 10 Keys to Blogging and Writing Success: The Must Have Checklist
Previous article 4 Cell Phone Emergency Hacks that could save your life

J.R. Williams

Career IT professional with over 15 years experience in website administration, systems administration, dba, and more. My IT skills range far and wide. If you think this article will help others, please take a moment to click the share button.

Related Posts

Is Guapcoin the Real Deal and Should you Support it?
December 24th, 2020

Is Guapcoin the Real Deal and Should you Support it?

Linux Cheat Sheet, The Must Know Command Line Functions
December 23rd, 2020

Linux Cheat Sheet, The Must Know Command Line Functions

How To Add YouTube Videos To Instagram: 10 Steps With Pictures
December 20th, 2020

How To Add YouTube Videos To Instagram: 10 Steps With Pictures

Leave a Reply Cancel reply

You must be logged in to post a comment.

Latest Reviews

Scullcandy Earphones Review

Scullcandy Earphones Review

Aries 8 – Best Budget Android Tablet under $100 | 2016-17

Aries 8 – Best Budget Android Tablet under $100 | 2016-17

Verizon FIOS Installation, Customer Service Review: The Strike Disaster

Verizon FIOS Installation, Customer Service Review: The Strike Disaster

Top reads

Latest

Dec 24th 12:25 AM
cryptocurrency

Is Guapcoin the Real Deal and Should you Support it?

Dec 23rd 4:02 PM
Featured

Linux Cheat Sheet, The Must Know Command Line Functions

Dec 20th 9:23 AM
Featured

How To Add YouTube Videos To Instagram: 10 Steps With Pictures

Dec 18th 12:00 PM
WordPress

How To Optimize Your Database From WP-Admin

Dec 2nd 11:00 PM
Featured

Unable to start Windows WebLogic 10 – 11g Admin service ? Run Debug!

  • Mobile
  • Operating Systems
  • Tutorials
  • Reviews
  • Information Security
  • Games
  • Request Help
  • Back to top
© Unbiased Media LLC 2021. All rights reserved.