For a long time I had resisted converting my DVD and Blu-Ray disks into any other format because I didn’t want to lose any quality. I had lived by this rule for a long time, and thankfully companies like QNAP and Thecus came to my storage rescue. However, the day has come where the cost of storing all the extra garbage that comes along with these movies has opened my eyes to benefits conversions. With that, I have began converting my movie collection to a format that allows me to lose all the excess fat, but keep my movie loss-less. Read More…
Add a Custom Logo to the WordPress Login Screen
Date: August 13th, 2010
Author: Joe DiFiglia
Category: Wordpress
Tags: functions.php, Wordpress
Article URL: http://computingondemand.com/?p=4133
There are many things about WordPress that make life easy... and a few that are a real pain in the butt. One of the pains is the login form's logo and url. If you are like me, you want to brand your sites and doing so gives the site that extra touch of personalization. Not to mention, if you are designing a site for a customer, you don't want a big fat logo for WordPress linking to the WordPress.org site on the login form.
By simply overwriting the logo-login image in your WordPress wp-admin/images/ folder you risk having the original WordPress image restored every time you update your installation.
The bad news is that there is no way to do this from your WordPress dashboard, the good news is that you can do this easily by editing your theme's functions.php file.
1. create an image with the dimensions 326 wide by 67 high, name it logo-login.gif and drop it into your theme's images folder.
1. edit your functions.php file and add the following code between the <?php and ?>
// --------------------------------------------------------------------------
// Start Custom Login Logo
// --------------------------------------------------------------------------
function my_custom_login_logo() {
echo '';
}
add_action('login_head', 'my_custom_login_logo');
// --------------------------------------------------------------------------
// End Custom Login Logo
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// Start Custom Login Logo URL
// --------------------------------------------------------------------------
function change_wp_login_url() {
echo bloginfo('url');
}
function change_wp_login_title() {
echo get_option('blogname');
}
add_filter('login_headerurl', 'change_wp_login_url');
add_filter('login_headertitle', 'change_wp_login_title');
// --------------------------------------------------------------------------
// End Custom Login Logo URL
// --------------------------------------------------------------------------Note: These functions are not of my own creation, simply things I have found along the way. If you are the author of this function, please let me know so I can properly credit you with your work!


