New Landing How can we help? Themeforest Theme Support Dante REMOVE Flags from WMPL Header

Viewing 15 posts - 1 through 15 (of 15 total)
  • Posted in: Dante
  • #70762
    ALDD
    Member
    Post count: 80

    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

    #70770
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hey, if you can post up your website URL we can give you the right css for the flags!

    Cheers

    #70783
    ALDD
    Member
    Post count: 80

    Here is the link Melanie:
    http://goo.gl/rVGTL4

    #70893
    ALDD
    Member
    Post count: 80

    Just 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.

    #71002
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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 Ideas

    #71063
    ALDD
    Member
    Post count: 80

    Fantastic! Thank you so much for your usual support.

    #71064
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome . I’m glad that issue resolved .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #73880
    Superflu
    Member
    Post count: 4

    That was most helpful, thank you.

    #73921
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I’m glad that issue resolved .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #90978
    tangent24
    Member
    Post count: 23
    This reply has been marked as private.
    #90988
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    @tangent24 – Please provide website url so i can give to you exact solution.
    Thanks

    #91003
    tangent24
    Member
    Post count: 23
    This reply has been marked as private.
    #91004
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    @tangent24 โ€“ Please use this custom css code:
    .languages-menu-item img{display:none !important;}
    Thanks

    #91006
    tangent24
    Member
    Post count: 23

    Perfect. Thanks!

    #91007
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. I’m glad that issue resolved .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register