Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #973289
    #973709

    Hey Esther,

    Here are some threads to consider:

    https://wordpress.org/support/topic/polylang-logo-change/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #974256

    Hoi Victoria,

    Thank you for your advice. But what is not quite clear to me: Which function.php do I have to adapt now?
    /wp-content/themes/enfold-child/functions.php (because I use enfold-child)
    /wp-content/themes/enfold/functions.php
    /wp-content/themes/enfold/functions-enfold.php

    The directory for the logos is, I think at least, this one:
    /wp-content/themes/enfold/images/layout

    For this reason I also adjusted the path for the logos in the script accordingly:

    function pojo_polylang_get_multilang_logo( $value ) {
    if ( function_exists( ‘pll_current_language’ ) ) {
    $logos = array(
    ‘de_CH’ => ‘Logo_DE.png’,
    ‘fr_FR’ => ‘Logo_FR.png’,
    );
    $default_logo = $logos[‘en’];
    $current_lang = pll_current_language();
    $assets_url = get_stylesheet_directory_uri() . ‘/images/layout/’;
    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’ );

    Thank you very much for your help!

    Best regards,
    Esther

    #974517

    Hi,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.