Skip to content

Instantly share code, notes, and snippets.

@benjino
Forked from rossteasley/gist:3058013
Last active December 20, 2015 01:39

Revisions

  1. benjino revised this gist Jul 22, 2013. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    // changing the login page logo
    function rgt_custom_dashboard_logo(){
    echo '<style type="text/css">
    h1 a {
    @@ -6,3 +7,9 @@ background-image:url('.get_stylesheet_directory_uri().'/images/put-your-logo-fil
    </style>';
    }
    add_action('login_head', 'rgt_custom_dashboard_logo');

    // changing the login page URL
    function put_my_url(){
    return ('http://www.yourdomain.com/'); // putting my URL in place of the WordPress one
    }
    add_filter('login_headerurl', 'put_my_url');
  2. @rossteasley rossteasley created this gist Jul 6, 2012.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    function rgt_custom_dashboard_logo(){
    echo '<style type="text/css">
    h1 a {
    background-image:url('.get_stylesheet_directory_uri().'/images/put-your-logo-filename-here.gif) !important;
    }
    </style>';
    }
    add_action('login_head', 'rgt_custom_dashboard_logo');