kevinho Posted August 8, 2019 Share Posted August 8, 2019 I've got a problem with the recent update to the link editor. I used to have three links in my navigation bar to trigger JavaScripts which connected to LocalizeJS to switch the language on my website. The link was a simple/common script like this: javascript:Localize.setLanguage('en') Before the update to the link editor, I was able to add a link like the one above. But recently, one of the button is not working so I decided to remove it and recreate a new link but when I try to add the javascript bit to the link editor now, it pop up an error message saying "Links must be formatted as www.example.com or example.com" which I've not seen this before the update. Is there anyway that I can add a javascript to the link editor again or any other ways for me to trigger the function? Thanks in advance! Link to comment
kevinho Posted August 8, 2019 Author Share Posted August 8, 2019 I'm also considering to specify the function with Jquery but since the link on the navigation bar doesn't have a fixed id. I don't seem to able to do that, can anyone suggest another way? thanks! Link to comment
kevinho Posted August 8, 2019 Author Share Posted August 8, 2019 I'm also considering to specify the function with Jquery but since the link on the navigation bar doesn't have a fixed id. I don't seem to able to do that, can anyone suggest another way? thanks! Link to comment
KirkBobash Posted January 3, 2020 Share Posted January 3, 2020 Please see the following help doc which explains how to create links in the header of your Squarespace site when using Localize: Add links to switch language Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.