Forums

Login Logo
[resolved] Alt / Title tag (5 posts)

  1. RogerWheatley
    Member
    Posted 7 months ago #

    How do we change the alt/title tag to the image?

    Currently it shows the "Powered by..." alt/title tag instead of either a blank one or one that reflects the site.

    I looked at the plugin code, but not to sure. Do we need to create a couple var's like alt and title? Any code examples kicking around?

    Appreciated!

    http://wordpress.org/extend/plugins/login-logo/

  2. Mark Jaquith
    WordPress Lead Dev
    Posted 7 months ago #

    Don't think I have access to change that. I might have to use a translation filter hack. I'll look into it.

  3. RevelationTravis
    Member
    Posted 5 months ago #

    Place the following code in your functions.php file and you should be set:

    //Replaces the WordPress URL and Title on the login page
    function custom_login_url () {
        echo bloginfo ('url');
    }
    add_filter ('login_headerurl', 'custom_login_url');
    function custom_login_title () {
        echo bloginfo ('name');
    }
    add_filter ('login_headertitle', 'custom_login_title');
  4. OC2PS
    Member
    Posted 4 months ago #

    +1

  5. Mark Jaquith
    WordPress Lead Dev
    Posted 1 week ago #

    Looks like the filter existed after all!

    http://plugins.trac.wordpress.org/changeset/545887/login-logo/trunk

    That'll be in the next release, but you can use Trunk if you want it early.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags