Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › REMOVE Flags from WMPL Header
New Landing › How can we help? › Themeforest Theme Support › Dante › REMOVE Flags from WMPL Header
- This topic has 14 replies, 5 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Dante
-
April 29, 2014 at 1:39 pm #70762
Hello,
Please advise how I can remove flags from the WPML header?
I was able to use this CSS Code but it only remove the flags from the drop-down optionselection.
#header-languages img { display: none !important; }
What do I need to change from the SF-THEME-FUNCTIONS.PHP?
/* LANGUAGE FLAGS ================================================== */ function sf_language_flags() { $language_output = ""; if (function_exists('icl_get_languages')) { $languages = icl_get_languages('skip_missing=0&orderby=code'); if(!empty($languages)){ foreach($languages as $l){ $language_output .= '<li>'; if($l['country_flag_url']){ if(!$l['active']) { $language_output .= '<a href="'.$l['url'].'"><img src="'.$l['country_flag_url'].'" height="12" alt="'.$l['language_code'].'" width="18" /><span class="language name">'.$l['translated_name'].'</span></a>'."\n"; } else { $language_output .= '<div class="current-language"><img src="'.$l['country_flag_url'].'" height="12" alt="'.$l['language_code'].'" width="18" /><span class="language name">'.$l['translated_name'].'</span></div>'."\n"; } } $language_output .= '</li>'; } } } else { //echo '<li><div>No languages set.</div></li>'; $flags_url = get_template_directory_uri() . '/images/flags'; $language_output .= '<li><div class="current-language"><span class="language name">Translation - Under Construction</span></div></li><li><a href="#"><span class="language name">French</span></a></li><li><a href="#"><span class="language name">English</span></a></li>'."\n"; } return $language_output; }
Appreciate your support.
Thanks Antonio
April 29, 2014 at 1:53 pm #70770Hey, if you can post up your website URL we can give you the right css for the flags!
Cheers
April 29, 2014 at 2:05 pm #70783Here is the link Melanie:
http://goo.gl/rVGTL4April 29, 2014 at 7:59 pm #70893Just to add to this.
I have selected under the WPML settings the following but the flag still shows.
Under Languages> Language switcher option>What to include in the language switcher> uncheck the flag.
April 30, 2014 at 7:56 am #71002Hi,
Please use given below custom css code at Admin -> Theme Options -> Custom CSS => Here put this code and update options .div.th-right nav.std-menu ul.menu li.parent a img{display:none;}
Hopefully that should work .
Thanks ๐
With Best Regards
Swift IdeasApril 30, 2014 at 9:42 am #71063Fantastic! Thank you so much for your usual support.
April 30, 2014 at 9:43 am #71064Hi,
You most welcome . I’m glad that issue resolved .
Thanks ๐
With Best Regards
Swift IdeasMay 10, 2014 at 12:09 pm #73880That was most helpful, thank you.
May 11, 2014 at 12:54 pm #73921Hi,
I’m glad that issue resolved .
Thanks ๐
With Best Regards
Swift IdeasJuly 14, 2014 at 4:30 pm #90978This reply has been marked as private.July 14, 2014 at 5:04 pm #90988@tangent24 – Please provide website url so i can give to you exact solution.
ThanksJuly 14, 2014 at 5:51 pm #91003This reply has been marked as private.July 14, 2014 at 6:04 pm #91004Hi,
@tangent24 โ Please use this custom css code:
.languages-menu-item img{display:none !important;}
ThanksJuly 14, 2014 at 6:10 pm #91006Perfect. Thanks!
July 14, 2014 at 6:12 pm #91007Hi,
You most welcome. I’m glad that issue resolved .
Thanks ๐
With Best Regards
Swift Ideas -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.