How to get this to work

Questions & AnswersCategory: QuestionsHow to get this to work
Jeremy asked 7 months ago

So I just got this for my Squarespace site and cannot find an easy guide on how to get this to work.   I have Indexes and folders in two different languages and a landing page to pick the language.   When you pick the language goes to the Index of that language you have it linked to but it also showes all menu items doubled in both languages.   I entered the header code it gave me and made the tro javascript links but there seems to be no good step by step from there.    Very unclear and not a coder so need some help.   I want to go to one language and only have the Navigation (folders and indexes) apear in the language selected.   No clue how to do that.  this is the site

theresa replied 5 months ago

Did you ever find out how to use this? I just got it myself and have found the help documentation lacking.

1 Answers
Dave Hilditch Staff answered 5 months ago

Hi – if this is referring to ‘language specific pages’ then to change the language, you need to use either the language selector or the built-in menu system for the language selector.
If this is on a cover page, and you’d like to send them to a specific page AND change the language, you can set the URL as this:

javascript:changeLanguageAndMove(0, '');

The above would be for your first language (e.g. if you have English and French, then the 0 represents English)

Then you’d change the French URL to:

javascript:changeLanguageAndMove(1, '');

This function will change the language AND change the URL.