Adding the personal touch after developing a WordPress theme

WordPress theme designers and developers like myself, often add a little signature to their creations either in the admin area (at the footer) or in the footer of the sites parent theme – “site created by Billy Brag or something similar”. Well I tend not to add my name to the footer of the parent theme, but I do add it to the footer in the admin area. There are a few other alterations that a developer might do to customise the theme, however there is one I always add to the functions.php file right at the end of the project.

I call it my “My Personal Touch and Signature” – how pretentious is that!? Also not a very snappy name but… meh!

As simple as it might be it’s always one I add at the end of my projects, this is what it does. MPTS swaps out the WordPress Admin Footer Text (admin_footer_text) for your own text, I normally add my name, link to my site and a ‘thank you’ message. The bit of code also, changes the WordPress Login Head Logo (login_head) for your own or clients, specified in the themes image folder, it also removes the Login Head URL (login_headerurl) for the blogs own URL and changes the WordPress Login Header Title (login_headertitle) for the blogs own title. Nifty, quick and simple… next!

/*********************
MY PERSONAL TOUCH AND SIGNATURE
*********************/

//changing the logo - you will have to amend the address of your logo and the name (if you need to)
function mpts_login_logo() {
    echo '<style type="text/css">
    h1 a { background-image:url('.get_bloginfo('template_directory').'/library/images/mpts-logo-160x160.png) !important; background-size: 80px 80px !important; }
    </style>';
    }
    add_action('login_head', 'mpts_login_logo');

    // changing the login page URL
    function mpts_custom_url(){
    return (''.get_bloginfo('url').''); // this will swap-out the old url for the website home page url
    }
    add_filter('login_headerurl', 'mpts_custom_url');

    // changing the login page URL hover text
    function mpts_custom_title(){
    return (''.get_bloginfo('name').''); // this will return the website name as the title
    }
    add_filter('login_headertitle', 'mpts_custom_title');

    // marking my territory so people do not forget me
    function mpts_admin_footer_text () {
      echo 'Your site was created by <a href="http://www.yourdomain.com" target="_blank">Your Name</a>';
    }
    add_filter('admin_footer_text', 'mpts_admin_footer_text');

Where it states “…urn (‘ ‘.get_bloginfo(‘url’).’ ‘); // thi…” this will use the blogs own URL in replace of wordpress.org, you can customise this further by adding your own custom URL, for example “…urn (‘http://www.yourdomain.com‘); // thi…“. And where it asks “…urn (‘ ‘.get_bloginfo(‘name’).’ ‘); // thi…“, you can add your own custom title “…urn (‘Your Website Name‘); // thi…“. Finally change “yourdomain.com” and “Your Name” in the admin footer text filter… Enjoy!