Question
How can I completely hide the sign up button from my help center?
Answer
To remove the option for customers to sign up, but still keep the ability for anyone to contact, use the below solution. This solution requires that you customize the theme of your help center.
To remove the sign up button
- In Guide, click the Customize design icon (
) in the sidebar. Select the theme you want to use and click Customize. Select Edit code.
- Remove the Sign in link from all help center templates. For version one of our Copenhagen theme, delete the helper user_info from the Header template of your Guide. If you are not sure which version you are using, see the article: About Guide templating versions.
For version two, delete the code block as shown in the image below.
{{#if signed_in}}
<div class="user-info dropdown">
<button class="dropdown-toggle" aria-haspopup="true">
{{user_avatar class="user-avatar"}}
<span class="hide-on-mobile">
{{user_name}}
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12" class="dropdown-chevron-icon" aria-hidden="true">
<path fill="none" stroke="currentColor" stroke-linecap="round" d="M3 4.5l2.6 2.6c.2.2.5.2.7 0L9 4.5"/>
</svg>
</span>
</button>
<div class="dropdown-menu" role="menu">
{{link "my_activities" role="menuitem"}}
{{my_profile role="menuitem"}}
{{change_password role="menuitem"}}
{{link "sign_out" role="menuitem"}}
</div>
</div>
{{else}}
{{#link "sign_in" class="sign-in"}}
{{t 'sign_in'}}
{{/link}}
{{/if}} - 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 some page within your domain. This way, if an end user finds the user registration page somehow, for example, direct URL, they are redirected away from the Zendesk login page that includes the Sign up button.
Additionally, remove any Zendesk branding from the welcome email and outbound email notifications in general by modifying the email template and specifically removing the two placeholders highlighted below, footer
and footer_link
.
Tip: 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?
Disclaimer: This article is provided for instructional purposes only. Zendesk does not support or guarantee the code. Zendesk also can't provide support for third-party technologies such as JavaScript, jQuery, or CSS. Post any issues you have in the comments section or try searching for a solution online.
14 Comments
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!
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!
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.
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!
works great, thanks for sharing
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
@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?
Yes, that's correct. Can I send it to you in private somehow?
okay, ifrasaqlain@gmail.com, it's my mail ID so you can send to this ID.
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?
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.
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!
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/
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!!
Please sign in to leave a comment.