[Support request] Theme Login Logout Styling Help

Home Forums Support [Support request] Theme Login Logout Styling Help

Home Forums Support Theme Login Logout Styling Help

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #598981
    sportsfan74

    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?

    #598986
    David
    Staff
    Customer Support

    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:

    https://wordpress.org/plugins/admin-custom-login/

    #599001
    sportsfan74

    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?

    #599016
    David
    Staff
    Customer Support

    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' );
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.