Remove "Sign In" from Help Center

Avec réponse

66 Commentaires

  • Wes Drury
    Actions pour les commentaires Permalien

    @Chris - It looks like you have commented out the sign in code.  That code is located in the header.

    Yes you can add some JS to only allow certain organizations to log in, but you will have to tag those orgs.  The code would be like this.

    https://support.zendesk.com/hc/en-us/articles/203661076-Hide-and-show-My-Activities-and-Submit-a-Request-Help-Center-

    Just let me know if you have any further questions.

    0
  • Chris
    Actions pour les commentaires Permalien

    @Wes - Thanks for the header, I definitely missed that!!

    I looked at the CSS/JS code and I am still unable to hide the "Sign In" button for Anonymous users. I can hide the "My Activities" tab though.

    I also am not sure what to edit other than "element" in the JS code. The tag that I am using is "skoollivevista". I think I am missing something.

    Thanks

    0
  • Wes Drury
    Actions pour les commentaires Permalien

    @Chris - The link I sent has some CSS and JS.  The CSS code will hide the Sign-In and My Activities from all users.  Then the JS will come into play and only show those if it gets a hit on the organization tag.

    0
  • Chris
    Actions pour les commentaires Permalien

    @Wes - I used the CSS codes and it did work in getting rid of the submit request and my activities items but the sign-in button was still visible. I understand that the #user-menu is the trigger for the sign in button, is that correct?

    Also, with the JS code, is the Element === skoollivevista the only thing I need to add to make it functional? Sorry for all the questions, I do not work with JS very much.

    0
  • Wes Drury
    Actions pour les commentaires Permalien

    @Chris - That is correct the #user-menu is part of the Sign-In button.  All you need to do is add the organization tag like you have above.  Make sure the JS code is below the $document.ready function.

    0
  • Chris
    Actions pour les commentaires Permalien

    @Wes - Do I need to remove the "(function() {" and "}());" from the beginning and end of the code to remove redundancy?

    Would it be possible to look at how my code is set up? I am positive I am missing something simple.

    0
  • Wes Drury
    Actions pour les commentaires Permalien

    @Chris - The code needs to be exactly how it is in the post.  Get your code setup and let me know and I'll take a look.

    0
  • Chris
    Actions pour les commentaires Permalien

    @ Wes - I added the code. The only thing that I changed was I removed ".submit-a-request" so anonymous users can still submit requests.

    0
  • Wes Drury
    Actions pour les commentaires Permalien

    @Chris - add a.login into your CSS like below.

    a[href$='requests/new'], a.my-activities, a.login, .my-activities {
    1. display: none;
    }
     
     
    0
  • Chris
    Actions pour les commentaires Permalien

    @ Wes - Kind of a silly question but wouldn't the user need to already be signed in for the JS to work because it is looking for the user tag? So getting rid of the sign-in button would be almost counter-intuitive unless they user was given the "en-us/requests" url to sign in.

    Does that make sense?

    0
  • Wes Drury
    Actions pour les commentaires Permalien

    @Chris - Yes good point so you need to keep the Sign in button and remove the rest.  When I went to the page it did hide those request for me so that part is working.  You will need to add an org tag(not a user tag) and then impersonate a user in that org and make sure it shows the links.

    0
  • Wes Drury
    Actions pour les commentaires Permalien

    @Chris - just checking in to make sure you got everything working.

    0
  • Chris
    Actions pour les commentaires Permalien

    @Wes - I am still not able to get the JS code to work. The CSS is working but when the user is logged in they are still unable to see the my activities hyperlink.

    I have reverted back to the original design so the customers are not confused until I can figure the JS code out.

    0
  • Danielle Drouin
    Actions pour les commentaires Permalien

    Hi Wes! Was wondering if we could remove the sign in button, but just from the header on the New Request page only. (the page where people submit new cases). Reason is, we will be sending this link to the new request page to our internal account managers to create cases, we do not want them to log in, just to submit the case (help center setting set to Open).

     

    Possible? i've tried playing around with the code, no luck yet. Thanks!

    0
  • Wes Drury
    Actions pour les commentaires Permalien

    @Danielle - I'll post some code here shortly.

    0
  • Wes Drury
    Actions pour les commentaires Permalien

    @Danielle - Give this a shot.  Paste the code below right below the $(.document.ready) function **make sure to change the subdomain

    //hide sign-in button on request page)
    if (window.location.href == "https://yoursubdomain.zendesk.com/hc/en-us/requests/new") {
    $('a.login').hide('');
    }

    0
  • Winston
    Actions pour les commentaires Permalien

    Hey Wes, just moved to the HC.  Like others, we're using the HC as a read-only channel.  I've tried your CSS code to remove the Sign-In option, but I'm thinking things have changed since that was posted, as it's not working.

    Could you post the new CSS code needed to remove the "Sign-In"  and "Submit a Request" from the header/homepage?

    Thanks!

    0
  • Wes Drury
    Actions pour les commentaires Permalien

    MrKlein - What theme are you using so I can ensure to use the correct code.

    0
  • Winston
    Actions pour les commentaires Permalien

    Thanks, Wes!  I'm using the Swiftest Elk.

     

    0
  • Wes Drury
    Actions pour les commentaires Permalien

    @MrKlein - In your header just remove the following two placeholders.

    {{link 'new_request' class='submit-a-request'}}
    {{user_info}}

    1
  • Winston
    Actions pour les commentaires Permalien

    @Wes Perfect, thanks!

    0
  • Liza Brazil
    Actions pour les commentaires Permalien

    Hi Wes,

     

    I followed your original instructions on how to remove the sign in and it worked. However, it enlarged the logo we have in place. How can i shrink the logo back to how it looked before? Thanks! 

    https://cuahsi.zendesk.com/hc/admin/appearance#customization

    0
  • Wes Drury
    Actions pour les commentaires Permalien

    @Liza which set of instructions did you follow.  The best way to do it is via HTML by removing the placeholders like noted a couple of post above.  If you do that way it should not interfere with your logo.

    0
  • Liza Brazil
    Actions pour les commentaires Permalien

    Hi Wes, I cannot find the original post now but now i'm looking above at:

    @MrKlein - In your header just remove the following two placeholders.

    {{link 'new_request' class='submit-a-request'}}
    {{user_info}}

     

    This also doesn't do the trick.

    Thanks

    0
  • Liza Brazil
    Actions pour les commentaires Permalien

    Wait a minute! Yes it does!

    0
  • Marybeth Sklar
    Actions pour les commentaires Permalien

    Since we hid our sign in button for end users, our agents/managers are occasionally denied access, likely due to some user/pass caching issues. As a workaround, we've used incognito windows or I've temporarily enabled the sign in option (it's commented out) to facilitate their use.

    How can I display a sign in for agents? They use this URL to access: https://[company name].zendesk.com/agent/#/dashboard.  In the initial thread response, Wes displayed a sign in for agents. How can we display the same?

     

    Thanks in advance!

    0
  • Tiann Nelson-Luck
    Actions pour les commentaires Permalien

    Hi Marybeth,

    Thank you for reaching out to Zendesk with your inquiry! Kind of like Wes mentioned at the beginning of this thread, you can give your agents a different URL to access your Zendesk by using https://your_subdomain.zendesk.com/access/normal. This way, they shouldn't get caught in caching issues or redirection to the Help Center for login. 

    I would have your agents bookmark this URL for future use! Let us know if you have any further concerns! 

     

    0
  • Marybeth Sklar
    Actions pour les commentaires Permalien

    Thank you. I've passed it along and we will try it.

    0
  • Marybeth Sklar
    Actions pour les commentaires Permalien

    Hello @tiann The URL above does not work for us. We still need to clear our caches to access agent accounts. Any other thoughts?

    0
  • Jessie Schutz
    Actions pour les commentaires Permalien

    Hey Marybeth! I'm sorry you're still having trouble with this.

    Can you be more specific about what's not working? Does it work sporadically, or not at all? Are your agents directed to sign in, or are they getting an error page? If they're getting an error, what is the error message? Is this effecting all agents, or only some of them?

    The more detailed information you can give us, the better equipped we'll be to figure out what's going wrong here.

    0

Cette publication n’accepte pas de commentaire.

Réalisé par Zendesk