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
-
Hide part of the image behind the section below
tonton replied to tonton's topic in Customize with code
Nothing -
Hide part of the image behind the section below
tonton replied to tonton's topic in Customize with code
Thick border didn't work our were you thinking to add it to the image? -
Hide part of the image behind the section below
tonton replied to tonton's topic in Customize with code
Unfortunately no luck with that -
-
I think the top is from my google tag manager. www.tiego.se
-
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?
-
(p) or paragraph text does not center align.
tonton replied to tonton's topic in Fonts, colors and images
That small mistake. Could not find it, thanks Ziggy! -
(p) or paragraph text does not center align.
tonton replied to tonton's topic in Fonts, colors and images
@tuanphan @Ziggy any ideas? -
(p) or paragraph text does not center align.
tonton replied to tonton's topic in Fonts, colors and images
-
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.
-
Language switcher doesnt load the updated page.
tonton replied to tonton's topic in Customize with code
Thanks for the feedback. I found the issue. The previous developer had installed an third-party service for the translation which they had canceled. -
Language switcher doesnt load the updated page.
tonton replied to tonton's topic in Customize with code
https://mouse-chimes-a658.squarespace.com/en/home -
Language switcher doesnt load the updated page.
tonton replied to tonton's topic in Customize with code
www.tiego.se -
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> | <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
-
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?
- 6 replies
-
- background
- images
-
(and 3 more)
Tagged with: