Viewing 4 replies - 1 through 4 (of 4 total)
  • Your web designer should be able to change the color of the Login with Google button, by overriding the CSS in your WordPress Theme’s styles.css file or similar. Try something like:

    form#loginform p.galogin {
    background-color: red !important;
    }

    Thanks,

    Dan

    Thread Starter BeautifulSmokies

    (@beautifulsmokies)

    The code on:

    ….com/wp-login.php

    overrides the code you have given me to install in the “style.css” file.

    To be more specific, there is a stylesheet included on the page:

    ….com/wp-login.php

    that pre-determines the appearance of the login button.

    Do you have another solution?

    Actually, I think the problem is that the theme’s style.css isn’t loaded at all on the login page (it’s not about it being overridden).

    You would just add the CSS to the login_enqueue_scripts hook instead, exactly as the plugin is doing it – perhaps from your Theme’s functions.php file:

    function my_login_styles() {
    ?>
    <style type=”text/css”>
    form#loginform p.galogin {
    background-color: green !important;
    }
    </style>
    <?php

    }
    add_action(‘login_enqueue_scripts’, ‘my_login_styles’);

    Please email me if you have any other questions as I’m better able to respond there: [email protected]

    Thanks,

    Dan

    Thread Starter BeautifulSmokies

    (@beautifulsmokies)

    That was the perfect fix. Thanks a thousand!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customize or change color of the Google Apps Login button.’ is closed to new replies.