Jump to content

Code injection for a language switch button

Recommended Posts

hi guys, 

i've followed this guide regarding creating a bilingual website:

https://www.bradgood.net/articles/multi-language-content-on-any-squarespace-template

i can't create a switch though, i follow the code an this is what comes out:

Screenshot2023-04-01alle18_51_01.thumb.png.914e81c5e4dae544543a19d05162ba02.png

i would like to put a simple switch with just the words (english or Italian) no flag or whatever,  on the right, next to the instragram and facebook button.

how can i do that?

thanks

Link to comment
  • Replies 6
  • Views 485
  • Created
  • Last Reply

Top Posters In This Topic

You have forgotten to place this code within the <script> tags.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
On 4/4/2023 at 8:36 AM, Zenocavallari said:

I added the script tags, now i can see the switch but its still not working properly

The comment below should be below the opening script tag, not above it:

/*setup language switcher*/

Did this help? Please give feedback by clicking an icon below  ⬇️

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
  • John_SQSP changed the title to Code injection for a language switch button

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.