Jump to content

tonton

Member
  • Posts

    48
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

tonton's Achievements

  1. Thick border didn't work our were you thinking to add it to the image?
  2. How do I move the guy so the section below covers the white space in between? https://www.tiego.se/
  3. I think the top is from my google tag manager. www.tiego.se
  4. Hi, how do I change the cookie pop-up text of the top banner. I found where to change the bottom banner but not the top. @Ziggy Any ideas?
  5. That small mistake. Could not find it, thanks Ziggy!
  6. Seems to be the whole webpage cause its even the menus are left-aligned.
  7. Hi! The parapgraph text that was nicely aligned in the center does align to left all of a sudden? Here is the website adress: www.tiego.se Any idea how this occurs? Did find anything in the css.
  8. Thanks for the feedback. I found the issue. The previous developer had installed an third-party service for the translation which they had canceled.
  9. https://mouse-chimes-a658.squarespace.com/en/home
  10. Hi my language switcher that is applie in the footer code injection doesnt load the updated enlighs page. i have updated the english homepage with new content but it doesn't load the updated site. I tried changing the code without any luck. Does anyone have and idea? Here is the code that is use for the language switcher in footer. <script> $(function() { /* SETUP MULTI-LANGUAGE */ var defaultLanguage = 'sv'; var lang = location.pathname.split("/")[1]; var site = location.pathname.split("/")[2]; var defaultClass = 'lang-'+defaultLanguage+''; var itemParent = "nav [class*='collection'],nav [class*='folder'],nav [class*='index'],nav [class*='group']"; if (lang == "" || lang.length > 2 ){ var lang = defaultLanguage; } /* ADD LANGUAGE CLASSES */ $('a[href="/"]').addClass('lang-'+defaultLanguage+'').parents(itemParent).addClass('lang-'+defaultLanguage+''); $('nav a:link:not([href^="http://"]):not([href^="https://"])').each(function () { var langType = $(this).attr('href').split("/")[1]; var multiLanguageClass = 'multilanguage lang-' + langType + ''; if (undefined !== langType && langType.length <= 2) $(this).addClass(multiLanguageClass).parents(itemParent).addClass(multiLanguageClass); }); $('nav button').each(function () { var langTypeFolder = $(this).attr('data-controller-folder-toggle').split("/")[0]; var multiLanguageClass = 'multilanguage lang-' + langTypeFolder + ''; if (undefined !== langTypeFolder && langTypeFolder.length <= 2) $(this).addClass(multiLanguageClass); }); /* HOMEPAGE-LOGO LINKS TO PROPER LANGUAGE HOMEPAGE */ if (lang == "sv") { $('a[href="/"]').attr("href", "/sv/home/"); } /* ADD EXCLUSION NAV ITEMS */ $('.exclude-me,.exclude-me a').addClass('exclude'); $('.sqs-svg-icon--list a,.SocialLinks-link').addClass('exclude'); /* REMOVE OTHER LANGUAGES AND KEEP EXCLUDED ITEMS */ $('.multilanguage:not(".lang-'+lang+',.exclude")').remove(); /*Tiego Cloud länk. Kommentera bort denna om det strular */ /* $('a[href="https://web.tiego.se/"]').css('visibility','visible');*/ /* $('a[href="https://web.tiego.se/"]').addClass('exclude');*/ /* KEEP LINK */ if (lang == "sv") { $('a[href="https://web.tiego.se/"]').addClass('exclude'); } if (lang == "en") { $('a[href="https://web.tiego.se/"]').addClass('exclude'); } /* SETUP LANGUAGE SWITCHER */ $('body').prepend('<div class="language"><a href="https://tiego.se/sv/home/" class="lang-en">Svenska</a>&nbsp|&nbsp<a href="https://tiego.eu/en/home" class="lang-sv">English</a></div>'); /* NOT REQUIRED */ /* SETUP URL REROUTE FOR MATCHING LANGUAGE PAGE */ switch (window.location.pathname) { case '/en/about': $(".language a.lang-en").attr("href", "/en/about"); $(".language a.lang-es").attr("href", "/sv/about"); break; case '/sv/about': $(".language a.lang-en").attr("href", "/en/about"); $(".language a.lang-es").attr("href", "/sv/about"); break; case '/en/products': $(".language a.lang-en").attr("href", "/en/products"); $(".language a.lang-es").attr("href", "/sv/products"); break; case '/sv/products': $(".language a.lang-en").attr("href", "/en/products"); $(".language a.lang-es").attr("href", "/sv/products"); break; } }); </script> Kind regards, Tony
  11. Worked fine when I'm the edito.. But when I check the page in incognito mode the code doesn't seem to work.. Any ideas?
×
×
  • 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.