Jump to content

Multi-lingual toggle - but not for multi-lingual

Recommended Posts

Posted

I am considering a website that will have content that falls under two sections: WORK or PLAY

I'm hoping to be able to have a bar at the top above the nav, that would have those words WORK / PLAY similar to how a multi language site would have a toggle to switch languages. This would switch to different sections of the site... 

Is this doable?

Thanks in advance.

Posted (edited)

Yes this is doable. You can for example create different sites for WORK and PLAY and then navigate to the sites based on which word the user clicked. With some css you can also put different headers on the respective sites. Here you can find a video that explains how to add text above the header: https://www.youtube.com/watch?v=sE0Ft39MtCA 🙂

 

Edited by SimonZSImon
Posted

@SimonZSImon Thank you for your reply. When you say "create different sites" - do you mean I would need multiple domains?

I have created a site before that had different sections based on a location selected on a cover page (all english, just different locations)- however I don't want to use a cover page in this instance. I'd like to be able to have the user land on a default home page, and then have the toggle visible at top that would swap the content when you click.

I will check out that youtube video to see if that is what I'm looking for.

Posted (edited)
4 minutes ago, lulu.lindberg said:

@SimonZSImon Thank you for your reply. When you say "create different sites" - do you mean I would need multiple domains?

I have created a site before that had different sections based on a location selected on a cover page (all english, just different locations)- however I don't want to use a cover page in this instance. I'd like to be able to have the user land on a default home page, and then have the toggle visible at top that would swap the content when you click.

I will check out that youtube video to see if that is what I'm looking for.

With "create different sites" I didn´t mean that you need multiple domains. You can have one squarespace website and different pages on it. Then you can customize pages for WORK and PLAY content and based on what the visitor clicked on redirect to the respective page. Does this answer your question?

Edited by SimonZSImon
Posted

I would suggest using this guide to set up, but instead of English and Spanish, do work and play:

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

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

@Ziggy I've been playing with this with only some success - can you only use two characters for the language set up?  So for example would the following not work? Would it have to be 'wo' and 'pl' versus 'work' and 'play'? 

var defaultLanguage = 'work'

 

Posted

I haven't tested this, but if you change this 2 to a 4 you should be able to use work and play:

image.thumb.png.d4e798b1963d0afe5ac62a157ed063e9.png

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
On 1/25/2024 at 3:27 AM, Ziggy said:

I haven't tested this, but if you change this 2 to a 4 you should be able to use work and play:

image.thumb.png.d4e798b1963d0afe5ac62a157ed063e9.png

That's what I assumed, I'll give it a try! I tried that earlier but my eyes were tired and I might have made errors elsewhere. Thank you! Will post in here if it works. @Ziggy

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.