Jump to content

Change button language in navigation for Squarespace 7.0

Go to solution Solved by paul2009,

Recommended Posts

Site URL: https://lifelab.world/en/home

Hello!

I need some help in changing the "Book Now" button on my navigation menu. I used bradgood's tutorial in building a multilingual website. I am on a SS7.0 business plan using Brine- Impact template. 

My idea was to create 2 links for the second navigation, 1 for English "BOOK NOW" which is already present and another in German "JETZT BUCHEN" which I placed on the not linked pages for now to avoid duplication. I may need a code to hide the other language while the EN language is used or vice versa.

Is this possible? 

Thank you so much!

 

Link to comment
54 minutes ago, Naomi-lifelab said:

Site URL: https://lifelab.world/en/home

Hello!

I need some help in changing the "Book Now" button on my navigation menu. I used bradgood's tutorial in building a multilingual website. I am on a SS7.0 business plan using Brine- Impact template. 

My idea was to create 2 links for the second navigation, 1 for English "BOOK NOW" which is already present and another in German "JETZT BUCHEN" which I placed on the not linked pages for now to avoid duplication. I may need a code to hide the other language while the EN language is used or vice versa.

Is this possible? 

Thank you so much!

 

Can you share the German link?

Edited by bangank36

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Hi bangak36,

Sorry for not providing links for further checking. I enabled the German booking button just now which is JETZT BUCHEN on the Nav bar. But it is only showing on the English page, but when I switch to the German page it disappears. I have attached a screenshot for reference.

English link:

https://lifelab.world/en/home

Here is the German link:
https://lifelab.world/de/home/

I hope this is possible to fix as I am not that fluent in coding and such. 😞

Thank you!

Home page EN.png

Link to comment
  • Solution

This should be simple to resolve.

Remove the protocol and domain name (https://lifelab.world) from the URLs in these two links so that only the paths remain:

/en/home/
/de/home/

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.

Buy me a coffee

Link to comment

Thank you paul2009,

I feel so stupid for not knowing this. 🤦‍♀️ 

I do have another question somewhat related to the nav bar.


I set the home page is in German, but the whenever I go to the main link: https://lifelab.world/ or on the logo. The navigation is in English but the texts are in German. How can I make the nav menu in German as well? 

Thank you in advance! 

Home page.png

Link to comment
Just now, Naomi-lifelab said:

Thank you paul2009,

I feel so stupid for not knowing this. 🤦‍♀️ 

I do have another question somewhat related to the nav bar.


I set the home page is in German, but the whenever I go to the main link: https://lifelab.world/ or on the logo. The navigation is in English but the texts are in German. How can I make the nav menu in German as well? 

Thank you in advance! 

Home page.png

 The footer is also in English as well. 😐

Link to comment
17 minutes ago, Naomi-lifelab said:

I set the home page is in German, but the whenever I go to the main link: https://lifelab.world/ or on the logo. The navigation is in English

Check this line in the code 🙂:

 

var defaultLanguage = 'en';

 

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.

Buy me a coffee

Link to comment

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.