Hide Submit a Request button for specific languages/localizations

Answered

5 Comments

  • Trapta
    Comment actions Permalink

    Hi @Martin,
    You can try this code:
    {{#isnt current_locale 'pt'}}
    {{link 'new_request'}}
    {{/isnt}}

    Let me know if this solves your issue.

    Thanks

    0
  • Martin Lee
    Comment actions Permalink

    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.

    0
  • Trapta
    Comment actions Permalink

    @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

    1
  • Martin Lee
    Comment actions Permalink

    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.

    0
  • Trapta
    Comment actions Permalink

    Hi @Martin,

    If you can share the URL of your HC then may be I can help here.

    Thanks

    0

Please sign in to leave a comment.

Powered by Zendesk