• Resolved sandras21

    (@sandras21)


    I am trying to get multilingual logo working with neve theme, using for translation polylang plugin. There are several snippets available in different forums, I have tried them all but it does not work, only site logo appears. Is there something theme specific I shall keep in mind?
    Currently I have in childthemes functions file following code
    :
    function custom_polylang_multilang_logo( $value ) {
    if ( function_exists( ‘pll_current_language’ ) ) {
    $logos = array(
    ‘en’ => wp_get_attachment_image(‘3935’, ‘full’),
    ‘ru’ => wp_get_attachment_image(‘3938’, ‘full’),
    ‘et’ => wp_get_attachment_image(‘3945’, ‘full’),
    );
    $default_logo = $logos[‘et’];
    $current_lang = pll_current_language();
    if ( isset( $logos[ $current_lang ] ) )
    $value = $logos[ $current_lang ];
    else
    $value = $default_logo;
    }
    $html = sprintf( ‘%2$s‘,
    esc_url( home_url( ‘/’ ) ),
    $value
    );
    return $html;
    }

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Multilingual logo with polylang’ is closed to new replies.