Snippets: Custom Logo Per Language

// IMPORTANT - If you are using WPML you can change your logo via the string translation function
// This snippet is intended for other language plugins that don't support translating theme_mods
// or if you prefer to use code
add_filter( 'wpex_header_logo_img_url', function( $image ) {

    // Spanish logo URL for WPML
    if ( defined( 'ICL_LANGUAGE_CODE' ) && 'es' == ICL_LANGUAGE_CODE ) {
        $image = 'YOUR CUSTOM URL';
    }

    // Return logo image
    return $image;

} );

Snippet Type: PHP

Posted Under: Logo

All PHP snippets should be added via a child theme's functions.php file.