How to replace default wordpress login logo in genesis

Community Forums Forums General Discussion How to replace default wordpress login logo in genesis

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  braddalton 11 months, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #56263

    kriskl
    Participant
    Post count: 37

    hello, I would like to replace default wordpress login logo (I am using genesis child theme)
    without using plugins,

    I have found this function.. but it does not work :(

    add_action(‘login_head’, ‘custom_login_logo’);
    // custom admin login logo
    function custom_login_logo() {
    echo ‘<style type=”text/css”>
    h1 a { background-image: url(‘.get_bloginfo(‘template_directory’).’/images/new-logo.png) !important; }
    </style>’;
    }

    any ideas what is wrong?

    Kris

    #56278

    braddalton
    Participant
    Post count: 8780

    Link to your site please


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #56284

    kriskl
    Participant
    Post count: 37

    sorry,

    here is the link and the wordpress logo I want to replace

    http://opentuition.com/wp-login.php

    thank you
    kris

    #56287

    braddalton
    Participant
    Post count: 8780

    Looks like that code works however here’s another you can try

    https://gist.github.com/braddalton/6230742


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #56310

    kriskl
    Participant
    Post count: 37

    Thank you! that worked very well

    thanks again
    Kris

    #56312

    braddalton
    Participant
    Post count: 8780

    No worries, I just updated my post on the topic and shared it on Facebook.

    It includes 3 code snippets and 3 plugins which all do the same job.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.