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

Top Posters In This Topic

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

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

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

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

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.