Archived topic
Theme Login Logout Styling Help
3 replies · Started by sportsfan74 on June 13, 2018
Hi! Is there additional CSS to add for this, for example if you logout, the logout screen becomes part of the theme, therefore there is no default wordpress login or logout screen anymore. Is it possible?
Hi there,
the easiest way to style the default login is to use a plugin. There's quite a few on WP org, haven't got to recommend unfortunately.
But this has got a lot of 5* reviews:
thanks David
But if you use a plugin that is not updated because the plugin has become premium now and is too expensive, can you still use that plugin and backup your website every now and then, will that be okay?
OK, if you want to make some basic styling changes such as background color (or image) and swap the logo you can enqueue some CSS using this PHP Snippet:
https://docs.generatepress.com/article/adding-php/
function awp_custom_login() { ?>
<style type="text/css">
.login {
background-color: #f6f7f8;
}
.login h1 a {
background-image: url('YOURLOGO') !important;
}
</style>
<?php }
add_action( 'login_enqueue_scripts', 'awp_custom_login' );