• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Customize Login Logo Without A Plugin

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Customize Login Logo Without A Plugin

This topic is: not resolved

Tagged: custom, login

  • This topic has 9 replies, 6 voices, and was last updated 4 years, 4 months ago by denverserrao.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • November 14, 2012 at 9:51 pm #171
    Jon Weiss
    Member

    Add these lines of code in your functions.php:


    // Custom WordPress Login Logo
    function login_css() {
    wp_enqueue_style( 'login_css', get_stylesheet_directory_uri(). '/css/login.css' );
    }
    add_action('login_head', 'login_css');

    As you can see, I've chosen to create a new stylesheet file for the login form. Although I prefer to do it this way, you can use the stylesheet of your current theme and just skip the step above.

    Next, add the following to the stylesheet:


    #login h1 a {
    background-image: url("http://YOUR-WEBSITE.com/wp-content/themes/YOUR_THEME/images/custom_logo.png") !important;
    }

     


    View My Site – Two W Media.com | I’m a Recommended StudioPress Customizer

    November 15, 2012 at 2:09 pm #213
    Lindsey Riel
    Member

    This is awesome, thank you for sharing 🙂


    Lindsey
    prettydarncute.com

    November 15, 2012 at 3:48 pm #225
    Jon Weiss
    Member

    Glad you like it... Happy to help! 🙂


    View My Site – Two W Media.com | I’m a Recommended StudioPress Customizer

    November 15, 2012 at 7:29 pm #245
    SMB-dev
    Member

    Very nice stuff indeed. Will be updating my code snippets list - Thanks Again and keep em coming 🙂


    “Life is Social” & “Social is the Lifeblood” of a Small Business Owner.

    November 15, 2012 at 7:37 pm #246
    Lindsey Riel
    Member

    I tried adding this code this evening and was unable to get it to work.


    Lindsey
    prettydarncute.com

    November 15, 2012 at 9:13 pm #254
    Jon Weiss
    Member

    That's weird. Did you add the style to your current stylesheet or to a new one? What's the link where I can see your attempt?


    View My Site – Two W Media.com | I’m a Recommended StudioPress Customizer

    November 15, 2012 at 10:28 pm #262
    wpsmith
    Member

    Hello,

    You need to change get_template_directory_uri() to CHILD_URL or get_stylesheet_directory_uri()


    Travis Smith | Recommended StudioPress Developer & Contributor
    WP Smith | @wp_smith | GitHub

    Due to the forums, please paste code using Pastebin, JS Fiddle (for JavaScript) or GitHub.
    How to use Firebug for Designers by SixRevisions

    November 15, 2012 at 10:31 pm #265
    Seth
    Member

    Here's the code that I normally use to customize the login logo and it works pretty well.

    /******* Customize Login Logo ******/
    function my_custom_login_logo() {
    echo '
    h1 a { background-image:url('.get_bloginfo( 'stylesheet_directory' ).'/images/login-logo.png) !important; }
    ';
    }

    add_action( 'login_head', 'my_custom_login_logo' );

    function my_custom_login_url() {
    return site_url();
    }
    add_filter( 'login_headerurl', 'my_custom_login_url', 10, 4 );


    Digital marketing consultant. Entrepreneur. Small business crusader. Husband & Father. Roman Catholic. Athlete. Homebrewer. Backyard Vintner. Italophile.
    Website | Twitter | Facebook

    November 16, 2012 at 7:22 am #282
    Jon Weiss
    Member

    Thanks for pitching in :). I pulled this one from my "archives" so I guess it's a bit dated.I tweaked the code so it should work better now.

     

    There's definitely a handful of ways to accomplish this, so keep in mind this is just one of many ways.


    View My Site – Two W Media.com | I’m a Recommended StudioPress Customizer

    November 19, 2018 at 9:01 am #224454
    denverserrao
    Participant

    // Adds support for editor color palette.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble