<?php
function my_custom_login() {
echo '<link rel="stylesheet" href="' . get_bloginfo('stylesheet_directory') . '/login/custom-login-styles.css" />';
}
add_action('login_head', 'my_custom_login');
?>
Simply paste this code snippet in the functions.php file of your (child) theme (without the php tags).
You need to create a directory called "login" inside your child theme's directory. In the "login" folder, create a CSS file called "custom-login-styles.css".
A custom stylesheet I personally use: https://codepad.co/snippet/DGdMHEf9
You need to create a directory called "login" inside your child theme's directory. In the "login" folder, create a CSS file called "custom-login-styles.css".
A custom stylesheet I personally use: https://codepad.co/snippet/DGdMHEf9
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.