Jump to content

Zenocavallari

Member
  • Posts

    35
  • Joined

  • Last visited

Everything posted by Zenocavallari

  1. I’m trying to have the “shop” page on my nav menu (not the button) with a different color, tried this css but is not working nav.Header-nav [href="shop"] { color: #709E96 !important; } url: https://cantinalepietre.com
  2. well yes I hoped for an easier solution! but ill proceed with manually inserting the prices then
  3. oww no other way? Fedex provide an API integration, could that work? no other external software?
  4. Hi guys, I'm recently setting up my e-commerce and have some troubles setting the shipping cost, I'm located in Italy and some integration do no work. I am a Fedex customer and i have customized priced for me, is there an automatic alternative rather than manually setting all prices based on weigh? thanks
  5. Tried that solution, the only thing is that I didn’t used an htlm switch, but two simple pages that are link to the en/home and it/home. Is there a way to set it this way? thanks
  6. hi, this is the code I used: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(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 == "it") { $('a[href="/"]').attr("href", "/it/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(); }); </script>
  7. Site url: http://cantinalepietre.com Hi guys, I've recently installed a language switch on my website, all the page are set into /en or /it for English or Italian, and the language switch operates on that. The only thing is that the langue switch redirects every time its pressed to the home page, ex: I'm navigating the "contact" page, I press the switch and I get redirected on the home page. Is there a way to make the switch operate in every singe page? thank
  8. solved! this is the code I used: /* move nav last two items to right */ nav.header-nav-list>div:nth-last-child(1), nav.header-nav-list>div:nth-last-child(2) {
  9. URL: cantinalepietre.com Hi guys, I have two language switch ENG and ITA for Italian, I want to use flags instead. I've tried adding this code: /* REPLACE ENG/ITA WITH FLAGS */ $('.lang-en').html('<img src="https://cdn.countryflags.com/thumbs/united-kingdom/flag-round-250.png" alt="English">'); $('.lang-it').html('<img src="https://cdn.countryflags.com/thumbs/italy/flag-round-250.png" alt="Italiano">'); But it's not working since the flags cover all the items in the menu
  10. Hi guys, I've followed this guide: but I want to move the last 2 items (ENG link and ITA link), how can I do that?
  11. Hi everybody, how do I move two items from the navigation bar? I've followed the guide as you posted, I've managed to move the "ENG" link but I want to move also the "ITA" Link, right next to the ENG. Is there a way to do it?
  12. thanks, that helped, though I have a couples of problem: Since I wrote the " /* REMOVE OTHER LANGUAGES AND KEEP EXCLUDED ITEMS */" part, If I add a ITA and ENG link where each of them are connected to it/home (ITA button) and en/home (ENG button), when I switch to Italian I only see the ITA button and when I switch to English I only see the ENG button since I excluded other languages pages. Is there a way to modify the exclusion in a way that for example if I switch to English and exclude all the /it links i still include the ITA link that is connected to the /it/home? Another possibility would be to use the link ad: cantinalepietre.com/it/home and cantinalepietre.com/en/home but the css guide only works for one since page so the result is this: is there a way to modify the CSS in the guide to move also the ITA button?
  13. I though about that, but is there a way to move those two link to the right of the navigation menu? Right next the instagram button?
  14. this is the guide I followed: https://www.bradgood.net/articles/multi-language-content-on-any-squarespace-template though I did exactly used the code as wrote by the guide, this is the one I used: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(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 == "it") { $('a[href="/"]').attr("href", "/it/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(); }); </script> <div class="language"><a href="/en/home" class="lang-en">English</a> | <a href="/it/home/" class="lang-it">Italiano</a></div> that would be great! do I need to write it on the custom css or code injector?
  15. The link is: www.cantinalepietre.com I’ve followed a guide, with a custom code. All the pages are set like /en (English) /it (Italian)
  16. Hi guys, currently my language switch button is inserted as you can see in the photo When I scroll down the page of course while the menu is also scrolling down the button is fixed there. Would it be possible to put It here as part of the header menu? would be awesome if I could use the same font and size (just like a weglot button)
  17. i managed to fix it, but i kind of dont really like it. If i scroll down the switch disappear: would it be possible to add it like here? like part of the menu?
×
×
  • 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.