Hide Submit a Request button for specific languages/localizations
답변함Hey all,
I'm trying to figure out how to hide the Submit a Request button at the top of the Help Center if a user selections a certain language/localization. I guess I'd also need to consider the submit a request link at the bottom of articles too. Any help would be greatly appreciated.
-
Hi @Martin,
You can try this code:
{{#isnt current_locale 'pt'}}
{{link 'new_request'}}
{{/isnt}}Let me know if this solves your issue.
Thanks
-
Hi Trapta,
Thanks for your reply!
I think I need to explain further;
I'll have 47 different locales/languages in my Help Centre. I only want en-us, en-ca, en-gb and fr-ca to be able to see the submit a request button and link.
-
@Martin, if you are using default Copenhagen theme then you put the below code at the bottom of your style.css file.
.submit-a-request {display: none;}
html[lang='en-us'] {display: inline-block;}You can repeat the last line for as many locales you want.
Thanks
-
Many Thanks, sadly it doesn't work, I imagine because I have a custom theme installed, I think I may need to get a dev on this one but at least I know where to start now. Your help is much appreciated.
-
Hi @Martin,
If you can share the URL of your HC then may be I can help here.
Thanks
댓글을 남기려면 로그인하세요.
5 댓글