Recent searches
No recent searches
No Sign Out option for user in Help Center
Answered
Posted Aug 03, 2021
I am not getting the Sign Out option in the drop down menu for users in Copenhagen theme.
I am not sure why it is not showing.
You were very helpful with my other issue - sorry to bug you but ZD support is not answering tickets super fast and need help with this.
Where would I look to see why I do not have the option to sign out. I get no drop down at all for some reason. I am sure I did something! The drop down menu will not show when clicking on the arrow beside my name.
Thank you,
~Donna
1
19
19 comments
Ifra Saqlain
Hey Donna,
Follow the below steps -
1). Go to the header.hbs file.
2). Find the code, see the given screenshot , your code would be written like this -
For copy and paste - if something missing then you can copy the below code and replace it with your code.
3). That code is for User Info
4). Close preview mode of your theme showing like this on preview mode at the header area.
Click on your name and see the output-
Still not showing then you can share the public URL of your Help Centre I'll figure out what's the issue :), but your buggy theme set as live, so I can see here.
Thanks
Team Diziana
0
Ifra Saqlain
Or maybe the dropdown is hiding due to any CSS code.
0
Donna Fairhurst
Thank you. Copied what you shared.
Portal Theme is currently live and this is where I am having issues: https://gradecam.zendesk.com/hc/en-us
Allows me to sign in but not out:
Also - in the preview you will see 4 categories on the preview but when it is live it only shows 3 categories like above
thank you for your help in this.
~Donna
0
Ifra Saqlain
Hi Donna, that's because your jQuery is bugging your dropdown. I think you didn't add jQuery CDN in head tag that's why the error is 'en-us:141 Uncaught ReferenceError: $ is not defined'.
First of all, add the CDN of jQuery. Go to the document_head.hbs file and add the given CDN.
Screenshot for the same:
If you have already multiple files added in the document_head.hbs file then add the CDN at the end of <link .....> stylesheet CDN like in the given screenshot because the JS loads after the CSS.
See, you have all options in the dropdown but due to jQuery bug that's not showing.
Your second question's answer is, your fourth category have articles those are not set view permission as Everyone that's why the category is hiding on end user.
Go to your articles of that buggy category and set all articles as Everyone.
Otherwise, create a demo category, and then demo section under that category and then create a demo article under that section and set that view permission Everyone.
Test that on homepage if that's showing on end user then figure out what's the reason.
https://support.zendesk.com/hc/en-us/articles/226941067-Why-aren-t-categories-and-sections-visible-to-customers-
Thanks
0
Donna Fairhurst
This is what I am seeing in the console - I can't get the dropdown to show to log out.
Thanks,
~Donna
0
Ifra Saqlain
Hi Donna,
Your script code needs closing DOM function. You have missed a closing bracket in your script file.
Add the closing bracket at the end of all code - });
See in the screenshot, I have added - line no. 405
0
Donna Fairhurst
Thank you - I can sign out now but as you can see - what in the world is going on when a user signs out? And when I sign out as an end user, I still only see 3 categories. I have checked all articles and made demo articles for the GradeCam Admin Support Tutorials but not finding the error.
See video of what happens when I sign out - which now doesn't allow me to sign back in - I do have the sign in redirecting right to the activities so that may be messing things up:
https://drive.google.com/file/d/1W2wxv99sADORo3LNt4D16y_F73WzoHZ8/view
~Donna
0
Ifra Saqlain
Donna, I tried it to figure out but can't sign in and having problem. Can you share he credential of your Help centre on my gmail id (ifrasaqlain@gmail.com) so I can figure out what's going wrong and share the solution here.
I have seen your script code via page source and your script code is fine now.
I am damn sure something is going wrong in the theme because when I open the HC theme previously , I haven't seeing this loading bug.
0
Donna Fairhurst
Oh I am sure I have messed something up haha
How do I share the credential to you?
~Donna
0
Ifra Saqlain
Username and password, which you use to sign in your help centre workbench, share to ifrasaqlain@gmail.com
workbench screenshot which you login:
0
Ifra Saqlain
See, you have write the custom code in wrong function.
Your current code is (at the end):
It should be like this:
0
Joshua
Thank you for the thorough assistance on this problem, Ifra! It was very helpful to see your debugging process.
I found this ticket while encountering the same problem. Turns out the root of my issue was slightly different though. According to the official documentation, the sign out link is hidden in preview mode. Consequently, I never saw it while testing my code. I'm not sure why it is this way, but have made a Community Feedback post to understand/see if it can be changed!
Link to Community post
0
Ifra Saqlain
Thanks :)
0
David Jetter
Ifra Saqlain you have been very helpful in the past! i'm seeing something similar where users cannot even get a drop down when they click on their name in the top right and cannot see options to view their requests or to sign out, yet I think I have everything enabled to allow them to see it. Can you help? mcasupport.kw.com
0
Ifra Saqlain
Hi David,
You missed the closing brackets, I'm attaching the screenshot you can see there and fix in your code.
Line no. 82, where I added closing brackets but you missed that --
Try and let me know it works or not :)
0
David Jetter
Ifra Saqlain I was able to add it, but the drop down still does not appear. I can sign in no problem, but then nothing appears when clicking on my name when I would expect to see sign out, my requests, etc.
Thank you for checking into this and helping!
0
Ifra Saqlain
Okay I checked out the code of script.js file, you need to open Copenhagen theme and copy paste the default code and then add your custom js code at the end of script.js file, your issue will be solve automatically.
OR
You can replace your code with the given code which I have fixed for you.
0
David Jetter
Ifra Saqlain Thank you for this. I'm still not seeing the drop down option appearing after signing in. When I download a new version of the theme, I see the drop down appearing there. My thought at this point is to just download the newest version of the theme and add the custom code we have everywhere bit by bit to see if that may be blocking things. I do thank you for the assist here, you've helped me with a couple of scenarios like this!
0
Ifra Saqlain
Hey David Jetter, see your previous error has been change yet and new error is showing after updating the code. Now you can fix the error of hcmanager file.
You have dropdownlist but due to hcmanager error the event isn't working.
0