Custom CSS for the login page in WordPress

<?php function wpfme_loginCSS() { echo '<link rel="stylesheet" type="text/css" href="'.get_bloginfo('template_directory').'/wp-login.css"/>'; } add_action('login_head', 'wpfme_loginCSS'); ?>
Create wp-login.css in your theme folder.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.