# I created my custom theme in keycloak for login it works fine but when i add google button so that user can able to login with google also then it not work

**URL:** <https://forum.keycloak.org/t/i-created-my-custom-theme-in-keycloak-for-login-it-works-fine-but-when-i-add-google-button-so-that-user-can-able-to-login-with-google-also-then-it-not-work/28437>\
**Category:** Miscellanaeous\
**Tags:** authentication, oidc\
**Created:** [October 23, 2024, 7:44am UTC](https://forum.keycloak.org/t/i-created-my-custom-theme-in-keycloak-for-login-it-works-fine-but-when-i-add-google-button-so-that-user-can-able-to-login-with-google-also-then-it-not-work/28437 "2024-10-23T07:44:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankaj](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@ankaj](https://forum.keycloak.org/u/ankaj)\
**Post date:** [October 23, 2024, 7:44am UTC](https://forum.keycloak.org/t/i-created-my-custom-theme-in-keycloak-for-login-it-works-fine-but-when-i-add-google-button-so-that-user-can-able-to-login-with-google-also-then-it-not-work/28437/1 "2024-10-23T07:44:49Z")

</div>

```
  <a
        href="${url.loginAction}?client_id=${client.clientId}&kc_idp_hint=google"
        class="google-btn"
        ><img
          class="google-img"
          src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIzOHB"
          alt="Google Logo"
          class="google-icon"
        />Continue with Google</a
      >. this is what i make url for social login so that user can login with google but it not work

```

---

<div class="post-metadata">

**Author:** ![edewit](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/edewit/32/287_2.png) [@edewit](https://forum.keycloak.org/u/edewit)\
**Post date:** [October 23, 2024, 2:05pm UTC](https://forum.keycloak.org/t/i-created-my-custom-theme-in-keycloak-for-login-it-works-fine-but-when-i-add-google-button-so-that-user-can-able-to-login-with-google-also-then-it-not-work/28437/2 "2024-10-23T14:05:37Z")

</div>

Did you add the identity provider? Then you can just use what is already in the login theme:

```auto
<#nested "socialProviders">

```
