Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Language Switcher on header
New Landing › How can we help? › Atelier › Language Switcher on header
- This topic has 15 replies, 4 voices, and was last updated 7 years by David Martin – Support.
-
Posted in: Atelier
-
October 12, 2015 at 5:17 pm #220202
Hi. I’d like to change the look of the language switcher to horizontal simple text (English | Chinese) rather than the drop down with flags. I have made the changes within the WPML plugin, but the theme CSS seems to override this option.
Our clients are both Chinese and Taiwanese-based and there is a sensitivity to which flag they choose for their respective countries. We’d rather just have text, no flags to make everyone happy!
Thanks,
AlyssaAttachments:
You must be logged in to view attached files.October 13, 2015 at 12:16 pm #220408Hi,
To hide the submenu language flags, please add this:
nav.std-menu ul.sub-menu > li:first-child { display: none; }
Thanks,
David.October 13, 2015 at 9:59 pm #220623Hi David. All that did was remove the first menu item on all my dropdowns throughout the site 🙂
Your help is appreciated!
October 14, 2015 at 8:24 am #220680Hi,
Great thanks to David.
MohammadNovember 17, 2015 at 12:13 pm #229308Hi there
Looking for the same solution.
“All that did was remove the first menu item on all my dropdowns throughout the site.”
Davids solution didn’t work, so any propositions?
Thanks and best regards
Caspar
November 18, 2015 at 11:20 am #229588Hi,
@leggero – What is your issue exactly? Please provide me specific page url with issue.
Thanks
MohammadNovember 18, 2015 at 12:05 pm #229606Hi Mohammed
no issue, just would like to have DE/EN on the site instead of the flags:
Thanks and best regards
Caspar
November 18, 2015 at 12:15 pm #229609Hey,
To remove the flags within the dropdown, please use this:
ul.header-languages.sub-menu li img { display: none; }
Thanks,
David.November 18, 2015 at 3:17 pm #229647Thanks David, works.
But the flags on the first level are still there. As we are a Swiss Company, the german flag doesn’t fit. Is there any chance to change it into DE / EN?
Thanks
Caspar
November 18, 2015 at 3:29 pm #229652Yes, with a little CSS trick:
.aux-item.aux-language ul.menu>li.aux-languages>a>span { display: block!important; font-size: 0; } .aux-item.aux-language ul.menu>li.aux-languages>a>span:before { content: "DE/EN"; font-size: 16px; }
Thanks,
David.May 4, 2016 at 6:53 pm #265447Hi David
Sorry for the long waiting. It’s not working though (s. Screenshot). The flag is still there, and the DE/EN underneath:
I switch it off on the site.
Any thoughts?
Best regards
Caspar
Attachments:
You must be logged in to view attached files.May 5, 2016 at 7:47 am #265511Hi,
Please provide correct website url to check.
Thanks
MohammadMay 5, 2016 at 10:04 am #265550Hi Mohammed
I added it at my testsite:
dev.appenzeller-gurt.com
Same here.
Thanks and best regards
CAsparMay 5, 2016 at 10:33 am #265565Hi,
Please use this custom css code:-#header .aux-languages img, #top-bar .aux-languages img { display: none !important; }
Thanks
MohammadJuly 11, 2016 at 10:33 am #280373Works perfectly now!
Thanks
-
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.