This article explains how to remove the sign-in button from your help center while still allowing customers to contact you. The recipe offers step-by-step instructions for customizing your help center theme based on the Guide templating versions you use and provides additional tips for ensuring a seamless user experience.
The workflow includes the steps below.
- Step 1: Remove the sign in button
- Step 2: Configure user access
- Step 3: Remove branding from outgoing notifications
Step 1: Remove the sign in button
Customize the help center theme to remove the sign in button. This varies whether you use templating api v1, or either templating api v2 or v3.
To remove the sign in button
- Edit the code of your help center theme.
- Remove the Sign in link from all help center templates.
- For Templating API v1 of the Copenhagen theme, delete the user_info helper from the header.hbs template.
- For Templating API v2, v3, and v4 delete all references or code blocks that rely on the
signed_in
helper that include the{{link "sign_in"}}
helper.
For example, the block below:
<nav class="user-nav" id="user-nav"> <ul class="user-nav-list"> <li>{{link 'community'}}</li> <li>{{link 'new_request' class='submit-a-request'}}</li> {{#unless signed_in}} <li> {{#link "sign_in" class="sign-in"}} {{t 'sign_in'}} {{/link}} </li> {{/unless}} </ul> </nav>
Becomes:
<nav class="user-nav" id="user-nav"> <ul class="user-nav-list"> <li>{{link 'community'}}</li> <li>{{link 'new_request' class='submit-a-request'}}</li> </ul> </nav>
Warning: Zendesk periodically updates the Copenhagen theme and the locations of this helper are subject to change. Zendesk recommends reviewing the repository zendesk/copenhagen_theme.
- For Templating API v1 of the Copenhagen theme, delete the user_info helper from the header.hbs template.
Step 2: Configure user access
Instruct your agents to bookmark the yoursubdomain.zendesk.com/access/normal
path to use to sign in and access Zendesk.
Enable SSO for end users and set the remote URL to a page within your domain. This way, if a customer finds the user registration page, for example, through a direct URL, they'll get redirected away from the login page.
Step 3: Remove branding from outgoing notifications
To prevent your customers to see any Zendesk branding in your ongoing notifications, modify the email template and specifically remove these two placeholders: footer
and footer_link
.
Avoid the {{ticket.url}}
placeholder in your messages to end users as it generates a link to view the ticket in the help center.
For information about how to remove the sign-up button and disable the ability for anyone to create tickets, see the article: How do I remove the ability for customers to sign up to our account?
18 comments
Calla
Hi ZD Team!
We are trying to create a public guide with no sign in option since our customers sign in on our own website. I followed Step 1 above to delete the code, but did not do steps 2 and 3. A user somehow still received the sign-up link and was confused. Is there a link sent in ZD email notifications that might lead them back to a sign-in page if our Guide is enabled? We've never had complaints about this before I started creating the guide, so I believe it's related. Our Guide is also not advertised anywhere on our website so I don't know how they got there in the first place.
Thanks so much in advance!
0
Brett Bowser
Hey Calla,
You may want to check your settings under Admin>Settings>Customers as you can disable the Welcome Email from there as. If you end up manually creating users in your account you can also disable the Anyone can submit tickets option which should prevent them from being able to sign up.
Let me know if that's not what you're looking for!
1
Calla
Thank you for your help Brett! I unchecked the box in the screenshot below - just wanted to confirm that this would mean no one gets the welcome email simply by viewing our help desk? I'm not sure if this qualifies as a case where the user is "created by an agent/administrator" since the person is just viewing the site on their own.
0
Brett Bowser
Hey Calla,
If a user is only viewing your site then they wouldn't receive a welcome email regardless of if that option was toggled on or off. They should only receive the email if they sign-up by entering in their information.
Hope that clears up any confusion!
0
Frédéric
works great, thanks for sharing
0
Tomer Duvshan
Hi, I removed the code block from the template, and the sign up option is still there. According to what I understand from this article, steps 2&3 are only required if you want to prevent end users from creating accounts if they have a direct link and allow my agents to login using another link, which I'm fine with and I'm not worried about that.
I tried talking to your support but they kept instructing me to disable "the ability for anyone to contact" which is not what want and according to the 1st sentence in this article, not really required
2
Ifra Saqlain
@Tom, you want to hide the sign-in button only from the end-users, not agents, right?
Can you share the public URL of your Help Centre?
0
Tomer Duvshan
Yes, that's correct. Can I send it to you in private somehow?
0
Ifra Saqlain
okay, ifrasaqlain@gmail.com, it's my mail ID so you can send to this ID.
0
Kristian Kho
Hey Zendesk team,
Amazing Walkthrough, thank you for the guide. I have 1 follow up question though. I've completed the steps shown above but found out that you can still see a "Sign in" button when the page is in mobile view.
which code snippet is responsible for this and does commenting it out works too?
0
Ifra Saqlain
Hey Kristian Kho,
'{{sign_in}}' helper exists two times , did your remove both?
Copenhagen: Theme version 2.15.0
One for Desktop:
And, second for mobile.
0
Marina
Hi Ifra Saqlain, wondering if you can help? My team is using Copenhagen Theme version 2.13.2, Templating API v2. However my code doesn't exactly match what's shown in the example. I'm not a developer and don't want to break our HC. If I remove only lines 19-23 and 79-81 as you've shown (those do match my code), will that remove the sign in button?
Thank you for you help!
0
Ifra Saqlain
Hey Marina,
You need to remove the code:
When you have done, test well your header :)
If any query, let me know.
Thanks
Click on my site link: http://ifrasaqlain.com/introduction/
1
Team RSH
Hello all,
The title of this article is about "sign-up" button, not "sign-in" right ?
My end-users need the login button on HC to see their own tickets. So far, every solution entirely removes the login button from the header...? (i tried it)
We create our end-users through API, and we don't want unknown users to create their own account without permission.
And we also need to keep the form public, to anonymous users.
Can someone help me find a solution or understand this point please ?
Thank you!!
1
Bill Brooks
Hello,
We need to keep the ability for anyone to submit tickets via email, but we want to prevent people from creating their own accounts to access the help center. I'd like to control who has access to the help center.
We have Copenhagen theme v2.19.4, API v2. Following the steps in the article above removes the user drop down in the header, but does not affect the sign up link.
I need to remove the "sign up" and "Get a password" links from the log in screen.
Can you please advise how to proceed?
0
Ifra Saqlain
Hi Bill,
Please go through this article and I hope you will get your answer here:
https://support.zendesk.com/hc/en-us/articles/4408888513434-Can-I-customize-my-Help-Center-s-login-page-and-popup-
Thanks
0
Bill Brooks
What I mean to say is that, the body this article is describing how to remove the SIGN IN link, but the title and Q&A say this is how to remove the SIGN UP link, which is very different. The article Ifra referenced above shows editing the sign up link is not possible.
I would recommend changing the title and description of "How can I completely hide the SIGN UP button from my help center", as it is very misleading. It should be titled "How can I completely hide the SIGN IN button from my help center".
This article says we can keep the ability for everyone to submit tickets and remove the sign up link. That is not at all what removing this code block does. This removes the sign in link, but people still have the ability to sign up and create their own accounts.
0
Ifra Saqlain
Bill Brooks, I shared an article and the title is
'Can I customize my Help Center's login page and popup?'
as per your query which you shared above:
If you describe clearly about your query I can better understand and sometimes we don't understand the query due to lack of clarity.
I know the title of this article.
0