Kevin_40-red_fx Posted January 19, 2022 Share Posted January 19, 2022 Site URL: https://www.redfx.co/ Hello to all of you!! I've been trying to create a professional multi-language (English and French, to be more precise) website for the past 3 weeks and I've always seem to encounter a problem. I've read all the posts that I could find in the forum, related to this issue but none seem to fully work for my website. The only code that did managed to work was the one from this page: https://www.bradgood.net/articles/multi-language-content-on-any-squarespace-template BUT it only worked for a couple of days until it abruptly stopped with no explanation. I tried deleting the entire code and reapply it but now I get "syntax error" each time… I've deleted it. I've tried these methods too and none work: https://kerstinmartin.com/blog/css-solution-for-bilingual-squarespace-website https://www.creationsbyfaria.com/blog/multilingual-site-squarespace https://beaverhero.com/squarespace-2-languages/ Can someone please help me out? Thank you for the attention! Link to comment
AndreaDube Posted January 20, 2022 Share Posted January 20, 2022 It seems to be working now? Link to comment
Kevin_40-red_fx Posted January 20, 2022 Author Share Posted January 20, 2022 Hello, No, it's not working. I've added a cover page and added buttons linked to both English and French homepages, but once you select the language, it show both english and french pages at the same time. It was supposed to show the pages of the same language in the navigation and hide the other pages. I'm not sure if I expressed myself correctly, I apologize if its not the case! Link to comment
paul2009 Posted January 20, 2022 Share Posted January 20, 2022 On 1/19/2022 at 10:30 AM, Kevin_40-red_fx said: I've been trying to create a professional multi-language (English and French) website for the past 3 weeks and I've always seem to encounter a problem. It only worked for a couple of days until it abruptly stopped with no explanation. I've deleted it. Squarespace have been making a lot of unannounced changes lately, and these can affect custom code. However, it will be difficult to troubleshoot if you've removed the code. Can you add it again and let us take a look? If you have any screenshots of the errors (alongside the code) this may also help. About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Kevin_40-red_fx Posted January 20, 2022 Author Share Posted January 20, 2022 Hi, I've added the code back! This time it doesn't show any syntax error. The language switcher appeared up in the right, which is good, but in the navigation there still is all the pages shown, regardless of the language selected Can you take a look? paul2009 1 Link to comment
Solution paul2009 Posted January 20, 2022 Solution Share Posted January 20, 2022 52 minutes ago, Kevin_40-red_fx said: in the navigation there still is all the pages shown This seems to be caused by the external button in the navigation. It is causing an error. Perhaps you added this button recently? Try removing the section of code that deals with the button. It's the section that starts with the first line below and is 6 lines long. Remove all six lines and save the changes. $('nav button').each(function () { var... var... if... $(this)... }); When I do this, it works: About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Kevin_40-red_fx Posted January 20, 2022 Author Share Posted January 20, 2022 It worked! Thank you so much!! Can you give me a code to better custom the "Sign Up/Login" button as well as another one to replace the "EN and FR" with the flags of UK and France? It would be great! Link to comment
paul2009 Posted January 20, 2022 Share Posted January 20, 2022 1 minute ago, Kevin_40-red_fx said: Can you give me a code to...replace the "EN and FR" with the flags of UK and France? See step 5a in Brad's guide. He provides a solution here. That said, I only recommend using flags if you are specifically targeting customers in the UK and France. If you want to target customers anywhere who speak English or French, it's better to keep the EN and FR. See my old post on this subject. About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Kevin_40-red_fx Posted January 20, 2022 Author Share Posted January 20, 2022 OK, I'll do so. Thank you again. This already helped a lot!! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment