Reply To: WPML change logo code missing from documentation

The support forum is open for members only. To add a topic or reply in the forum, please login or register.

Support Forum Moved
The Pojo Themes support has been transferred to a faster and more personal ticketing platform, so the forums are no longer active.
  • If you want to learn how to use Pojo themes, check out our extensive documentation guides.
  • Need help with using our themes? Contact us with a detailed explanation of your issue in the support page.
  • Have a pre-sale question or other inquiry? Feel free to contact us about it.

Support › Forums › Support (Legacy) › WPML change logo code missing from documentation › Reply To: WPML change logo code missing from documentation

#1360
Boaz
Keymaster

Hi Arthur,

This is the code:

function pojo_wpml_get_multilang_logo( $value ) {
if ( defined( ‘ICL_LANGUAGE_CODE’ ) ) {
$logos = array(
‘en’ => ‘logo-en.png’,
‘he’ => ‘logo-he.png’,
);
$default_logo = $logos[‘en’];
$current_lang = ICL_LANGUAGE_CODE;
$assets_url = get_stylesheet_directory_uri() . ‘/assets/images/’;

if ( isset( $logos[ $current_lang ] ) )
$value = $assets_url . $logos[ $current_lang ];
else
$value = $assets_url . $default_logo;
}
return $value;
}
add_filter( ‘theme_mod_image_logo’, ‘pojo_wpml_get_multilang_logo’ );