Zenocavallari Posted May 8 Share Posted May 8 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 Link to comment
Solution tuanphan Posted May 10 Solution Share Posted May 10 Try adding to Design > Custom CSS header#header div.header-nav-item:last-child>a { background-image: url(https://cdn.countryflags.com/thumbs/united-kingdom/flag-round-250.png); background-size: 30px; background-repeat: no-repeat; color: transparent; } header#header div.header-nav-item:nth-last-child(2)>a { background-image: url(https://cdn.countryflags.com/thumbs/italy/flag-round-250.png); background-size: 30px; background-repeat: no-repeat; color: transparent; } Zenocavallari 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment