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
-
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
-
Zenocavallari reacted to a post in a topic: Language switch: how to switch language inside a page avoiding being redirect to the home page
-
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
-
tuanphan reacted to a post in a topic: How to move last navigation item to far right of screen
-
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 -
Zenocavallari reacted to a post in a topic: Language switch: transforming text into flags
-
tuanphan reacted to a post in a topic: Moving two items to far right of screen
-
Beyondspace reacted to a post in a topic: How to move last navigation item to far right of screen
-
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 -
Zenocavallari reacted to a post in a topic: Moving two items to far right of screen
-
Moving two items to far right of screen
Zenocavallari replied to Zenocavallari's topic in Customize with code
hi, www.cantinalepietre.com thanks!