Skip to content
Newbury New Media

support@newburynew.media

menu
  • Contact
  • Web Hosting
    • Budget Hosting Package
    • Ultimate Hosting Package
    • Cloud Hosting Package
    • Domain Name Registration
  • Blog
    • News
    • Code Snippets
    • Tutorials
  • Home

01635 36887

support@newburynew.media

CLOSE

Change Your WordPress Login Logo

Change Your WordPress Login Logo

By Gordon

July 10, 2013

Here’s a handy php snippet to pop in your themes functions.php file which will replace the WordPress logo on the login page for your blog. Change the /images/you-login-logo.png to point to your logo. 274px width x 63px height will be a perfect swap.

/** this function swaps the login page logo **/

function my_login_logo() { 
  echo '<style type="text/css">
        body.login div#login h1 a {
            background-image: url('. get_stylesheet_directory_uri() './images/your-login-logo.png);
            padding-bottom: 30px;
        }
    </style>';
}

add_action( 'login_enqueue_scripts', 'my_login_logo' );

Easy as that!

HTML Bite Size Course – This Saturday 10th August in CalcotHTML Bite Size Course – This Saturday 10th August in Calcot

Changing the number of items on the WooCommerce shop and category pagesChanging the number of items on the WooCommerce shop and category pages

  • css
  • Customization
  • Login
  • Logo
  • php
  • WordPress

One response to “Change Your WordPress Login Logo”

  1. wordpress for beginners ebook says:
    August 1, 2013 at 4:40 pm

    Nice post !
    I found many amazing themes in your lists.
    Can’t wait to try on my site & recommend other friends.
    Thank alot for sharing, just keep it up

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Categories

  • Code Snippets
  • Friends
  • Games
  • News
  • Plugins
  • Tutorials

Advertisment

Blog Archives

Tags

add image size Blogs Branding Browser Chrome Configuration Contact Form 7 Content css Customization Dashboards Desktop Background Downloads Education Email Firefox FontAwesome Game Graphic Design HTML IE Javascript jQuery Logo Design Marketing Media Fusion NPM php Plugins Responsive Safari SEO Social Media tags Template Tools Troubleshooting Twitchy Pixel Useful Sites Web Analytics Web Design WooCommerce WordPress wpcf7 WP Query

Search

Contact Newbury New Media

Email: info@newburynewmedia.co.uk
Phone: 01635 36887

Recent Posts

  • Quiz Presentation App
  • Little bit of jQuery to control your page scroll
  • Solving the IOS body overflow bug
  • Fixing the node-sass error extracting old Roots Sage projects
  • Checking Gutenberg render callback locations

Latest Posts

  • Quiz Presentation App
    Quiz Presentation App
  • Little bit of jQuery to control your page scroll
    Little bit of jQuery to control your page scroll
  • Solving the IOS body overflow bug
    Solving the IOS body overflow bug
  • Fixing the node-sass error extracting old Roots Sage projects
    Fixing the node-sass error extracting old Roots Sage projects
  • Checking Gutenberg render callback locations
    Checking Gutenberg render callback locations
  • Couple of methods for Enqueuing FontAwesome in WordPress
    Couple of methods for Enqueuing FontAwesome in WordPress
  • Radio box styling for Contact Form 7
    Radio box styling for Contact Form 7
  • jQuery each() vs for loop
    jQuery each() vs for loop
  • Add FontAwesome to WordPress posts with a Shortcode
    Add FontAwesome to WordPress posts with a Shortcode
  • Customize WooCommerce Variation Dropdown Labels
    Customize WooCommerce Variation Dropdown Labels
  • A few useful options built into WordPress for Theme Developers
    A few useful options built into WordPress for Theme Developers
  • Lazy load your post thumbnails
    Lazy load your post thumbnails
View more

Contact

Fill in the form below to send us a message. Your details will not be used for promotional purposes or passed on to any third parties.  

    • Home
    • Sign Up
    • Hosting T’s & C’s
    • Domain Name T’s & C’s

    Newbury New Media

    63 Cresswell Road,
    Newbury
    Berkshire
    RG14 2PQ

    01635 36887

    support@newburynew.media

    Copyright Newbury New Media 2021

    Created by NNM

    By continuing to use the site, you agree to the use of cookies. more information

    The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

    Close