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
  • Created
  • Last Reply

Top Posters In This Topic

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

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation 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)

Buy me a coffee

Link to comment
On 4/4/2023 at 2:36 PM, Zenocavallari said:

 I added the script tags, now i can see the switch but its still not working properly:Screenshot2023-04-04alle09_33_59.thumb.png.ab9f078f72e56e794969782f83d6e21a.png

this is the code:

Screenshot2023-04-04alle09_35_43.thumb.png.4772b70441711241b86ac40079d5ff69.png

What is your site url?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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  ⬇️

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation 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)

Buy me a coffee

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.