kris90210 Posted March 30, 2021 Share Posted March 30, 2021 Site URL: https://gvs.squarespace.com/ Hi, I'm in the process of working on a bilingual website and would like to find a way to have the button in the navigation bar act as a language toggle between English and Welsh. I'm using Weglot and it's simple enough to get it to switch from English to welsh using the #weglot-cy tag, the language translates automatically too. The issue I have is in changing the hyperlink based on what the language is currently set to. Alternatively, is there a way of replacing the button with Weglot's own widget? I can place it in the menu, but it looks untidy. I'd want it positioned to replace the button if possible. Hugely grateful for any help anyone can provide. Password to the site is Welc0me1 Kris Link to comment
celine Posted June 3, 2021 Share Posted June 3, 2021 Hi Kris! I see you have successfully created the toggle between two languages on your website using Weglot. Bravo! Is it possible for you to share the solution? I am seeking to do the same with my website. Thank you kindly in advance, Céline Link to comment
tuanphan Posted June 4, 2021 Share Posted June 4, 2021 20 hours ago, celine said: Hi Kris! I see you have successfully created the toggle between two languages on your website using Weglot. Bravo! Is it possible for you to share the solution? I am seeking to do the same with my website. Thank you kindly in advance, Céline I don't see toggle button on above site. Can you take a screenshot? We can take a look On 3/30/2021 at 5:15 PM, kris90210 said: Site URL: https://gvs.squarespace.com/ Hi, I'm in the process of working on a bilingual website and would like to find a way to have the button in the navigation bar act as a language toggle between English and Welsh. I'm using Weglot and it's simple enough to get it to switch from English to welsh using the #weglot-cy tag, the language translates automatically too. The issue I have is in changing the hyperlink based on what the language is currently set to. Alternatively, is there a way of replacing the button with Weglot's own widget? I can place it in the menu, but it looks untidy. I'd want it positioned to replace the button if possible. Hugely grateful for any help anyone can provide. Password to the site is Welc0me1 Kris Also, I see the header overlap mega menu Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
celine Posted June 7, 2021 Share Posted June 7, 2021 The following simple solution works in resolving my issue: /* WEGLOT hide current language */ .weglot-link--active { display: none !important; } Thank you everyone, Céline Link to comment
kris90210 Posted June 22, 2021 Author Share Posted June 22, 2021 Sorry Celine - I've only just seen this! Glad you found a solution 🙂 Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.