Title: google login button
Last modified: October 10, 2023

---

# google login button

 *  [dvamvourellis](https://wordpress.org/support/users/19db/)
 * (@19db)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/google-login-button/)
 * Hey, thanks for this nice plugin, im trying to make the google login button work
   in the form, ive tried these two options (from different plugins) but, in both
   cases, when you click the button in the registration form, it goes to the sign
   in form and when you click the button in the login form, it doesnt open googles
   page, instead it focuses on the email field. (if you try right click and open
   in new tab it works) but not normally.
 * its important to mention, that other than that, the google login works in other
   parts of the site (for example in the wp login page and the google popup message)
 * this is the code
 *     ```wp-block-code
       function google_login_button() {
       echo '
   
       -OR-';
       echo do_shortcode( '[google_login button_text="Login/Sign up with Google" force_display="no"]' );
       }
       add_action( 'lrm/register_form/after', 'google_login_button');
   
       function google_signup_button() {
       echo '
   
       -OR-';
       echo do_shortcode( '[google_login button_text="Sign Up with Google" force_display="no"]' );
       }
       add_action( 'lrm/login_form/after', 'google_signup_button');
       ```
   
 * ive tried these two plugins, the code is from the first
 * [https://wpsnippet.club/wp-admin/plugin-install.php?tab=plugin-information&plugin=login-with-google&TB_iframe=true&width=772&height=881](https://wpsnippet.club/wp-admin/plugin-install.php?tab=plugin-information&plugin=login-with-google&TB_iframe=true&width=772&height=881)
 * [https://wpsnippet.club/wp-admin/plugin-install.php?tab=plugin-information&plugin=google-apps-login&TB_iframe=true&width=772&height=881](https://wpsnippet.club/wp-admin/plugin-install.php?tab=plugin-information&plugin=google-apps-login&TB_iframe=true&width=772&height=881)
 * any help, is much appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-login-button%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [dvamvourellis](https://wordpress.org/support/users/19db/)
 * (@19db)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google-login-button/#post-17259539)
 * Any updates on this one?

Viewing 1 replies (of 1 total)

The topic ‘google login button’ is closed to new replies.

 * ![](https://ps.w.org/ajax-login-and-registration-modal-popup/assets/icon-128x128.
   jpg?rev=2185221)
 * [AJAX Login and Registration modal popup + inline form](https://wordpress.org/plugins/ajax-login-and-registration-modal-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-login-and-registration-modal-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-login-and-registration-modal-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-login-and-registration-modal-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-login-and-registration-modal-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-login-and-registration-modal-popup/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [dvamvourellis](https://wordpress.org/support/users/19db/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/google-login-button/#post-17259539)
 * Status: not resolved