Jump to content

Zenocavallari

Member
  • Posts

    35
  • Joined

  • Last visited

Recent Profile Visitors

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

Zenocavallari's Achievements

  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
×
×
  • 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.