Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Lucia_

Circle Member
  • Content Count

    54
  • Joined

  • Last visited

Personal Information

Recent Profile Visitors

121 profile views
  1. Dear @bradgood I have used your code as described and for some reason when I activate the code, I can see the code below in the footer: /* SETUP LANGUAGE SWITCHER */ $('.header-display').prepend('<div class="language"><a href="/de/adr-ac" class="lang-de"><span class="langueEncourse">DE</span></a><a href="/en/adr-ac" class="lang-en"><span class="langueEncourse">EN</span></a><a href="/fr/adr-ac" class="lang-fr"><span class="langueEncourse">FR</span></a><a href="/it/adr-ac/" class="lang-it"><span class="langueEncourse">IT</span></a></div>'); I also noticed that on mobile page looks very different as in too wide. If I want to use the accordion I need to swiping right to find it. this is the page i am referring to: https://www.adr-ac.ch/ Thank you for your help Lucia
  2. Hi there

    I'm stuck big time and cant find out why - hoping you can help me 😃
    I'm working on this page https://stay-home.squarespace.com (pw:stayhome) but for some weird reason I cannot edit the page, i just can add sections and then it wont let me edit it. 
    this is my first page on the new version 7.1

    your help is much appreciated!

    lucia

    1. Show previous comments  2 more
    2. tuanphan

      tuanphan

      If internet speed/code is not the causes, then it will come from Squarespace.

    3. Lucia_

      Lucia_

      okay I will get in contact with SQ and let you know if they can help. 

    4. Lucia_

      Lucia_

      it really looks like it was because of the internet, an hour later it all seemed to be good again. very weird but thank you for your support! much appreciated. 

  3. thank you @tuanphan, the black block is gone but so are my language flags/switcher. getting closer 😃
  4. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/2.6.0/css/flag-icon.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> window.Squarespace.onInitialize(Y, function(){ /* SETUP MULTI-LANGUAGE */ var defaultLanguage = 'en'; var lang = location.pathname.split("/")[1]; 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 == "en") { $('a[href="/"]').attr("href", "/en/online-agency/"); } /* 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(); /* SETUP LANGUAGE SWITCHER */ $('body').prepend('<div class="language"><a href="/en/online-agency" class="lang-en"><span class="flag-icon flag-icon-nz"></span></a> <a href="/de/online-agentur/" class="lang-de"><span class="flag-icon flag-icon-ch"></span></a></div>'); } /* HOMEPAGE-LOGO LINKS TO PROPER LANGUAGE HOMEPAGE */ if (lang == "de") { $('a[href="/"]').attr("href", "/de/online-agentur/"); } if (lang == "en") { $('a[href="/"]').attr("href", "/en/online-agency/"); } /* SETUP URL REROUTE FOR MATCHING LANGUAGE PAGE */ var pages = [ {'de': '/de/', 'en': '/en/'}, {'de': '/de/online-agentur', 'en': '/en/online-agency/'}, {'de': '/de/prozess/', 'en': '/en/process/'}, {'de': '/de/kueber-uns/', 'en': '/en/about/'}, {'de': '/de/kontakt/', 'en': '/en/contact/'} ]; $.each(pages, function(index, page_map){ if (window.location.pathname === page_map[lang]){ if (lang === "de"){ $(".language a.lang-de").attr("href", page_map[lang]); $(".language a.lang-en").attr("href", page_map['en']); } else { $(".language a.lang-en").attr("href", page_map[lang]); $(".language a.lang-de").attr("href", page_map['de']); } } }) }); </script>
  5. well funny enough you see the code hidden under that black banner. it is the code for the multi language function but seems like somethings wrong @tuanphan and I don't see why
  6. hi there I added some custom code to my site and now there is a new black block below my footer. how can i get rid of this or what is causing this? https://createyouronlinepresence.com/ thank you for your help!
  7. it doesn't. do you think it has to do with the fact its still a trial website?
  8. hi lu, thank you for your fast respond. I tried the code but it wont work. I tried this now but wont work either... #footer #show-site-footer #site-footer { display: block; background-color: #472017; }
  9. Hi there I am working on this page https://syntos.squarespace.com (pw: hello), template Harry and it love to change the footer to a darker color. tried to adjust the footer color in the CSS but it wont work. Any ideas how I can change the footer background and the banner of the quote section?
  10. its me again, when I insert the code under design it works great but if I want to see it on the live site it wont show. Do you have an idea what might be blocking it? https://www.riwers.io/de/dienstleistungen
  11. sorry my bad https://www.riwers.io/de/dienstleistungen
×
×
  • Create New...