skip to Main Content

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;

} );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)
Back To Top