Open samvthom16 opened 2 years ago
For polylang plugin:
function hi_logo () {
$hi_logo_url = '.../wp-content/uploads/2021/01/LOGO.png';
return esc_url($hi_logo_url);
}
$lang = 'en';
if( function_exists('pll_current_language') ){
$lang = pll_current_language();
}
if( $lang == 'hi' ){
add_filter( 'sp_logo_img_desktop', 'hi_logo' );
}
add_filter( 'sp_logo_img_desktop', esc_url( $url ) );