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

lucia.fritsche

Circle Member
  • Content Count

    41
  • Joined

  • Last visited

Personal Information

Recent Profile Visitors

57 profile views
  1. <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>
  2. well funny enough you see the code under that black banner. its the code for active for the multi language function but seems like somethings wrong...
  3. 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!
  4. it doesn't. do you think it has to do with the fact its still a trial website?
  5. 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; }
  6. 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?
  7. 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
  8. sorry my bad https://www.riwers.io/de/dienstleistungen
  9. Hi there I have a site with a few mark downs and would like to visually group them. How can I change the background color of the mark down from white to grey? https://www.riwers.io/de/dienstleistungen Thank you for any advice lucia
×
×
  • Create New...