Forum Replies Created

Viewing 1 post (of 1 total)
  • in reply to: WPML – flags always showing #21711
    darren01_j
    Member
    Post count: 1

    But is there a way to change the code so that the flags are always showing? Maybe in here:???

    /* LANGUAGE FLAGS
    	================================================== */
    	
    	function language_flags(){
    		if (function_exists('icl_get_languages')) {
    		    $languages = icl_get_languages('skip_missing=0&orderby=code');
    		    if(!empty($languages)){
    		        echo '<ul id="header-language-flags" class="clearfix">';
    		        foreach($languages as $l){
    		            echo '
  • '; if($l['country_flag_url']){ if(!$l['active']) { echo ''.$l['language_code'].''; } else { echo '<div class="current-language">'.$l['language_code'].'</div>'; } } echo '
  • '; } echo ''; } } else { echo "<p>WPML not installed and activated.</p>"; } }
Viewing 1 post (of 1 total)