Warning: sprintf(): Too few arguments in /home/glase/orgwordpress.org/www/wp-content/themes/newz/assets/lib/breadcrumbs/breadcrumbs.php on line 252

4 tips to customize the admin and login area of ​​WordPress

Looks better now!

A great article by Aurélien Denis appeared on Smashing Magazine three days ago. In it he described how to customize the administration area of ​​WordPress with just a few lines of code. Because especially with backend solutions for customers, it would be advisable to design the login area in the “look and feel” of the rest of the website.

The predefined WordPress logo of the login area can be replaced with that of the customer in a few simple steps. To do this, the file must functions.php be opened. It is located in the folder of the currently active theme under /wp-content/themes/DEIN-THEME. At the very end, before the closing PHP tag, simply insert the following code:

function login_css() {
    wp_enqueue_style('login_css', get_template_directory_uri() . '/admin.css');
add_action('login_head', 'login_css');

Now, in the WordPress login area, a new style sheet named admin.css integrated, which is also stored in the current theme folder (URL can be freely selected). In this CSS file, the background property of #login h1 a be overwritten (Caution: !important is necessary). Of course, other changes can also be made to the style sheet, for example to design the login area in the customer’s CI.

Unfortunately, the logo that has just been adapted still links to the WordPress website. The link can be done with a few lines in the functions.php be changed.

function wpc_url_login(){
    return "http://solife.cc";
add_filter('login_headerurl', 'wpc_url_login');

And since a WordPress copyright notice in the backend footer does not look perfect either, this can also be removed with a simple method in the functions.php be modified.

function remove_footer_admin () {
    echo '© 2012 - solife.cc - marmot stuff';
add_filter('admin_footer_text', 'remove_footer_admin');

Change URL to admin area

Finally, the URL of the administration area can be adjusted. The rather cumbersome standard addresses /wp-admin or. /wp-login.php can with a line in the .htaccessfile to be changed. Attention: The file is located in the root of the WordPress instance and may not be visible – simply show the hidden content in the FTP program. Then insert the following line:

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

The new URL to the admin area is now /admin.

WP Plugin: Access Wordpress Login only with valid IP or GETpass function Previous post WP Plugin: Access WordPress Login only with valid IP or GETpass function
Customize the WordPress login page via functions.php Next post Customize the WordPress login page via functions.php