Zenocavallari
Member-
Posts
35 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Everything posted by Zenocavallari
-
Changing color on one single nav bar page
Zenocavallari replied to Zenocavallari's topic in Fonts, colors and images
any help? -
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
-
well yes I hoped for an easier solution! but ill proceed with manually inserting the prices then
-
oww no other way? Fedex provide an API integration, could that work? no other external software?
-
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
-
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>
-
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
-
How to move last navigation item to far right of screen
Zenocavallari replied to PoppyShotts's topic in Other
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) {- 7 replies
-
- css
- navigation
-
(and 1 more)
Tagged with:
-
Language switch: transforming text into flags
Zenocavallari replied to Zenocavallari's topic in Customize with code
works perfectly! thanks -
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
-
Moving two items to far right of screen
Zenocavallari replied to Zenocavallari's topic in Customize with code
Solved using chat gpt! thanks anyway -
Moving two items to far right of screen
Zenocavallari replied to Zenocavallari's topic in Customize with code
hi, www.cantinalepietre.com thanks! -
How to move last navigation item to far right of screen
Zenocavallari replied to PoppyShotts's topic in Other
Sure thanks! www.cantinalepietre.com- 7 replies
-
- css
- navigation
-
(and 1 more)
Tagged with:
-
Moving two items to far right of screen
Zenocavallari replied to Zenocavallari's topic in Customize with code
any ideas? -
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?
-
How to move last navigation item to far right of screen
Zenocavallari replied to PoppyShotts's topic in Other
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?- 7 replies
-
- css
- navigation
-
(and 1 more)
Tagged with:
-
Inserting a language switch on the menu header
Zenocavallari replied to Zenocavallari's topic in Customize with code
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?- 8 replies
-
- custom-css
- code-injection
-
(and 1 more)
Tagged with:
-
Inserting a language switch on the menu header
Zenocavallari replied to Zenocavallari's topic in Customize with code
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?- 8 replies
-
- custom-css
- code-injection
-
(and 1 more)
Tagged with:
-
Inserting a language switch on the menu header
Zenocavallari replied to Zenocavallari's topic in Customize with code
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?- 8 replies
-
- custom-css
- code-injection
-
(and 1 more)
Tagged with:
-
Inserting a language switch on the menu header
Zenocavallari replied to Zenocavallari's topic in Customize with code
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)- 8 replies
-
- custom-css
- code-injection
-
(and 1 more)
Tagged with:
-
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)
- 8 replies
-
- custom-css
- code-injection
-
(and 1 more)
Tagged with:
-
Code injection for a language switch button
Zenocavallari replied to Zenocavallari's topic in Customize with code
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?