# Universal Login Page Template not working for me

**URL:** <https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769>\
**Category:** Get Help\
**Tags:** lock, auth0\
**Created:** [June 2, 2021, 10:14pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769 "2021-06-02T22:14:27Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![nihilultra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nihilultra/32/29760_2.png) [@nihilultra](https://community.auth0.com/u/nihilultra)\
**Post date:** [June 2, 2021, 10:14pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/1 "2021-06-02T22:14:27Z")

</div>

I am trying to customize the login page using Universal Login Page Templates. They work with the default templates. But do not work from the examples provided in the url [Universal Login Pages](https://auth0.com/docs/universal-login/new-experience/universal-login-page-templates) . The preview and the site just spits out the raw text **{%- auth0:head -%} {%- auth0:widget -%}**. I have enabled “Customize Login Page” and also New instead of classic. Any ideas anyone why the Liquid templates are not working for me.  
Thanks

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [June 3, 2021, 1:32pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/2 "2021-06-03T13:32:59Z")

</div>

Hi @nihilultra

Are you trying to customize the “New Universal Login Page” or the “Classic Universal Login Page”?

It looks like you are trying to customize the “New” experience. To do this, you must NOT enable “Customize Login Page”, and then update the new universal login page template via the management API for branding.

> **[New Universal Login Experience](https://auth0.com/docs/authenticate/login/auth0-universal-login/new-experience)**
>
> New Universal Login Experience

John

---

<div class="post-metadata">

**Author:** ![nihilultra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nihilultra/32/29760_2.png) [@nihilultra](https://community.auth0.com/u/nihilultra)\
**Post date:** [June 3, 2021, 10:26pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/3 "2021-06-03T22:26:16Z")

</div>

Hi John,  
Thank you for your response. I have now selected now “New Universal Login Page” and also disabled “Customize Login Page”. I created a custom domain for the auth site and validated the DNS entry in “Custom Domains”. I just created it since I read that I need a custom domain before I can use the management apis.  
In “Applications” I chose “Apis” and created a System Api and using the clientid created a JWT token by doing a POST to https://{my auth0 domain}/oauth/token.  
Using the JWT token I was able to do a PUT to https://{domain}/api/v2/branding/templates/universal-login . I know it got updated since when I do a get I can see it in the response. However the page is still not getting updated. It shows the same default page. Am I missing anything else

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [June 4, 2021, 1:36pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/4 "2021-06-04T13:36:13Z")

</div>

Hi @nihilultra  
Try some of the examples here:

> **[Universal Login Pages](https://auth0.com/docs/customize/universal-login-pages)**
>
> Explore topics related to Universal Login Pages

John

---

<div class="post-metadata">

**Author:** ![jaime](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jaime/32/25904_2.png) [@jaime](https://community.auth0.com/u/jaime)\
**Post date:** [September 17, 2021, 11:10pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/5 "2021-09-17T23:10:24Z")

</div>

I’m facing the same problem, in my HTML template i’m not using `{% auth0:head %}` and `{%- auth0:widget -%}`,

and my template is set (I check with the api `GET	/api/v2/branding/templates/universal-login`)

I don’t know why my template is ignored,

note: If I set my template with the UI at Customize Login Page it’s works, but I want to define it like the default template for new universal login.

why is mandatory the usage of `{% auth0:head %}` and `{%- auth0:widget -%}` for customize the login ?

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [September 20, 2021, 12:59pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/6 "2021-09-20T12:59:35Z")

</div>

Hi Jaime,

If you customize the ULP via the Auth0 Dashboard, you are using classic ULP. Note the yellow box at the top of the screen where you see the ULP in the Dashboard that tells you this.

In order to use the new ULP template, you must have all customization turned off in the dashboard AND have new ULP selected.

John

---

<div class="post-metadata">

**Author:** ![jaime](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jaime/32/25904_2.png) [@jaime](https://community.auth0.com/u/jaime)\
**Post date:** [September 20, 2021, 4:04pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/7 "2021-09-20T16:04:06Z")

</div>

> [@john.gateley](#):
>
> u are using classic ULP. Note the yellow box at the top of the screen where you see the ULP in the Dashboard that tells you

I don’t have custom templates active in my Auth0 Dashboard, maybe I need to be more clear,

I did the steps below:

1. I create a custom HTML page for login and put it directly on Auth0 dashboard, and it works (the yellow box was displayed, and login works in my app).
2. I disabled it.
3. I tried to make that HTML content the default login page for the new login experience,  
using the API management endpoint `PUT /api/v2/branding/templates/universal-login`.
4. the endpoint failed, because my HTML doesn’t have `{%- auth0:head -%}` and `{%- auth0:widget -%}`
5. I edit my HTML and put the required code commented to pass the validation.
6. the template was accepted.
7. I verified if the template was accepted with the endpoint `GET /api/v2/branding/templates/universal-login` and it was.

after setting the new ULP template, I opened my app and it is using the normal ULP page instead of my custom HTML.

so my questions are:

1. Why do I need `{%- auth0:head -%}` and `{%- auth0:widget -%}` to define the new ULP template?
2. Why is my custom HTML been ignored?

And thanks for you response

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [September 21, 2021, 1:02pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/8 "2021-09-21T13:02:15Z")

</div>

HI Jaime,

At this point, I don’t know what is going on.

To answer your first question, see this page:

> **[Universal Login Pages](https://auth0.com/docs/customize/universal-login-pages)**
>
> Explore topics related to Universal Login Pages

Basically, each page embeds the functionality in the widget, and the template is the wrapper for that widget.

For the problem with it not displaying, check your tenant logs, see if there is an error. Make sure you are referring to the right tenant in your app.

John

---

<div class="post-metadata">

**Author:** ![blake.symonds](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/blake.symonds/32/12857_2.png) [@blake.symonds](https://community.auth0.com/u/blake.symonds)\
**Post date:** [September 21, 2021, 8:48pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/9 "2021-09-21T20:48:27Z")

</div>

If it is any help, I am having the same issue.

I cloned one of the examples (the one with the absolutely positioned footer) and pushed it up using the `PUT:/branding/template/universal-login` endpoint. I can pull the template back out using the same GET endpoint, so it appears to have taken.

When I authenticate against our connection/apps, I am getting the vanilla ULP render – with just our custom logo/primary color as configured in the console. Do those values affect the ability to use custom liquid templates?

For the record:

- “New” ULP selected
- No custom pages defined
- Our account is using a Private Cloud instance – only mentioning it as this has bitten us before as the dashboard isn’t always “up to date” with new features

---

<div class="post-metadata">

**Author:** ![blake.symonds](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/blake.symonds/32/12857_2.png) [@blake.symonds](https://community.auth0.com/u/blake.symonds)\
**Post date:** [October 14, 2021, 9:56pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/10 "2021-10-14T21:56:23Z")

</div>

Fix was to _make sure_ you are authenticating using the custom domain setup for the tenant. If you fall back to the default Auth0 provided domain for your tenant URI, it ignores your custom template and renders it vanilla.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 15, 2021, 9:05am UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/11 "2021-10-15T09:05:50Z")

</div>

Perfect! Glad you have figured it out!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 28, 2021, 12:20pm UTC](https://community.auth0.com/t/universal-login-page-template-not-working-for-me/63769/12 "2021-10-28T12:20:44Z")

</div>


