• Tried this in functions.php and text translation in polylang but no changes in customizer content.

    /* polylang translation */
    if ( function_exists( 'pll_register_string' ) ) :
    	    /**
    	     * Register some string from the customizer option array to be translated with Polylang
    	     */
    	    function my_pll_register_string() {
                    //got settings from options array
    		global $customizer_option_array;
    		
    			foreach($customizer_option_array $option=>$value){
    				//echo $option.'-'.$value ;
    				pll_register_string( $option, $value, 'my-theme-options', true );
    			}
    
    	    }
    	    add_action( 'after_setup_theme', 'my_pll_register_string' );
    endif;

    Even customizer home page settings not available with polylang active.

  • The topic ‘customizer fields translation’ is closed to new replies.