Hi,
I think I managed to find a way to make this change possible. All you have to do is copy this code:
function custom_polylang_multilang_logo( $value ) {
if ( function_exists( 'pll_current_language' ) ) {
$logos = array(
'fr' => wp_get_attachment_image('1555', 'full'),
'ar' => wp_get_attachment_image('1556', 'full'),
);
$default_logo = $logos['fr'];
$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;
}
add_filter( 'get_custom_logo', 'custom_polylang_multilang_logo' );
to the functions.php file and upload the two logos to Dashboard → Media. Now, click on the French logo and get his ID (once the pop-up opens, the browser link will have a part like this item=1555 (it will be a different number on your website). Just get the number you have and replace 1555 on this line:
'en' => wp_get_attachment_image('1555', 'full'),
and do the same for the arabic logo and replacing the 1556 value on this line:
'ar' => wp_get_attachment_image('1556', 'full'),
Once you did all these changes, plese check your website and tell me how the logo looks.