large shade tree

Navigation

Information

Recent Posts

Shade Tree Sites |Building Better Websites

Simple WordPress Admin Customizations

Whether you are just looking to customize your own WordPress site or are designing one for a client – these three snippets will make an impression.

1. Simple Login URL

To change the default URL for logging into your WordPress powered site from: yoursite.com/wp-login.php to yoursite.com/login

Paste this code in your .htaccess file before the default WordPress rewrite code:

RewriteRule ^login$ http://yoursite.com/wp-login.php [NC,L]

 

2. Change the WP Login Logo

To replace the default WordPress login logo with your logo, create a new logo 326px × 82px and copy to your themes ‘images’ folder (/wp-content/themes/theme-name/images).

Replace ‘companylogo.png’ with the name of you logo and paste this code into your functions.php:

function custom_login_logo() {    echo ‘<style type=”text/css”>h1 a { background: url(‘.get_bloginfo(‘template_directory’).’/companylogo.png) 50% 50% no-repeat !important; }</style>'; } add_action(‘login_head’, ‘custom_login_logo’);

 

3. Add a Custom Dashboard Logo

To replace the Dashboards logo, create a transparent (.gif or .png) image of 30x31px. Save the logo image in your theme’s image folder (/wp-content/themes/theme-name/images) and name it whatever you like.

Replace ‘custom-logo.gif’ with the name of your logo image and paste this into your functions.php:

add_action(‘admin_head’, ‘my_custom_logo’); function my_custom_logo() { echo ‘ <style type=”text/css”>#header-logo { background-image: url(‘.get_bloginfo(‘template_directory’).’/images/custom-logo.gif) !important; } </style> ‘; }