add_action( 'customize_register', 'custom_logo_uploader' ); function custom_logo_uploader($wp_customize) { $wp_customize->add_section( 'upload_custom_logo', array( 'title' => 'בחירת לוגו', 'description' => 'Display a custom logo?', 'priority' => 25, ) ); $wp_customize->add_setting( 'custom_logo', array( 'default' => '', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'custom_logo', array( 'label' => 'לוגו עברית', 'section' => 'upload_custom_logo', 'settings' => 'custom_logo', ) ) ); $wp_customize->add_setting( 'custom_logo2', array( 'default' => '', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'custom_logo2', array( 'label' => 'לוגו אנגלית', 'section' => 'upload_custom_logo', // put the name of whatever section you want to add your settings 'settings' => 'custom_logo2', ) ) ); } if(!is_rtl()): add_filter( 'get_custom_logo', 'wecodeart_com' ); endif; // Filter the output of logo to fix Googles Error about itemprop logo function wecodeart_com() { $custom_logo_id = get_theme_mod( 'custom_logo2' ); //var_dump($custom_logo_id); $html = sprintf( '<a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>', esc_url( home_url( '/' ) ),'<img src="'.$custom_logo_id.'" class="custom_logo"/>' //wp_get_attachment_image( $custom_logo_id, 'full', false, array( // 'class' => 'custom_logo2', //) ) ); return $html; }