• Dear support,

    I would like to have 3 different logo’s shown when a different language is selected. Default language is NL (Dutch) then DE (Germany) and ENG (English)
    I have read the description on https://support.pojo.me/docs/polylang-change-logo-every-language/
    but without success i tried to implement the code in the CHILD THEME – FUNCTIONS.PHP and of course changed the logo names and paths.

    This piece of code i have added to the CHILD – functions.php file:

    // Change The Logo In The Theme For Every Language
    function pojo_polylang_get_multilang_logo( $value ) {
    if ( function_exists( ‘pll_current_language’ ) ) {
    $logos = array(
    ‘de_DE’ => ‘GreenPee-Duits-01.png’,
    ‘en_GB’ => ‘GreenPee-Engels-01.png’,
    );
    $default_logo = $logos[‘nl_NL’];
    $current_lang = pll_current_language();
    $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_polylang_get_multilang_logo’ );

    Could you help me out with this problem?

    Regards,

    Marco Rinia
    Holland

    • This topic was modified 5 years, 9 months ago by Marco Rinia.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Marco Rinia

    (@marcorinia)

    @chouby from polylang support, could you please help me out with this problem?

    I would appreciate your help greatly or any response to my support question. If this is possible. Thanx in advance. Marco

Viewing 1 replies (of 1 total)
  • The topic ‘Different logo’s displayed when a different language is selected’ is closed to new replies.