hilmartor Posted July 4, 2021 Share Posted July 4, 2021 Hello all. On:alternanceiceland.squarespace.com/ (password: alternance) I have an English version and an Icelandic version, is it possible using Forte Template to have the site logo (in header) with different links? On English version - click to /english On icelandic version - click to /iceland So that the user stays on the selected language. Not figuring this out 🙂 Link to comment
NickScola Posted July 4, 2021 Share Posted July 4, 2021 Couple ways to go about this. I suggest you use Javascript for this. 1. Detect what navigation items is visible. English or Iceland 2. If Iceland navigation items are visible (not css hidden) then change the logo link Here's an example based off your site. Again, there's a few ways to go about this. if ( $('.page-collection:even').is(":visible") ) { $('.logo a').attr('href', '/iceland'); } https://www.nickscola.com - Squarespace developer since 2007 now a full service creative agency in Chicago that focuses on creating websites with a high standard for aesthetic excellence. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment