Recent searches
No recent searches
How to get the language dropdown menu option visible to users in Help Center theme
Answered
Posted Mar 23, 2022
We have a new help center in which we want to make it visible to users so that they can view it in one of two languages via a dropdown menu at the top of the main home page. This is available in our other existing help centers which I did not set up. What is the best way to do this? Is it through a Custom Theme?
0
3
3 comments
Dave Dyson
If you already have multiple languages set up for your help center (see Configuring your help center to support multiple languages if you haven't yet done that), and you're using the default Copenhagen help center theme (or using it as your starting point), the language drop-down might be located in the footer of the page, instead of the header. If it's there, you can move the code for it from your footer.hbs file in your theme, to the header.hbs file, and then it will appear at the top of the page.
I explained to another user how to do this here: Postion of the language dropdown
Hope that helps!
0
Lisa Kugler
Hi Dave,
0
Dave Dyson
Hi Lisa,
Thanks forthe code snippet. First, the error you're seeing is because you didn't quite grab enough code -- here's what you need to get (looks like you missed the last couple of lines -- each <div> needs to be balanced by a closing </div>, kind of like nested parentheses in ordinary text):
From there, moving that to the header is a little bit more complicated, and I'm sorry I implied it wasn't. I can show you pretty easily how to move it to the left of the user name and/or sign in link, but moving it to the right of that would require some additional styling or coding that's beyond the scope that I can help with (perhaps others in the community can help).
The first thing you'll want to do is insert the code into the header, right after the line that says:
<ul class="user-nav-list">
It can be helpful too add some blank lines in the code before and after the code you just pasted in, so you can tell it apart form the rest of the code.
Then you're going to make a little edit to the first and last line of the code you pasted, changing "div" to "li":
So the first line of the code you pasted will say: <li class="footer-language-selector">
And the last line will say: </li>
Save that, and your language dropdown should appear in the header. That's about the limit of the help I can provide, and I hope it helps!
0