remove_control('azera_shop_header_layout'); $wp_customize->add_setting( 'azera_shop_big_title_logo', array( 'default' => azera_shop_get_file('/images/logo-2.png'), 'sanitize_callback' => 'esc_url' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'azera_shop_big_title_logo', array( 'label' => esc_html__( 'Header Logo', 'algibro-shop' ), 'section' => 'azera_shop_header_content', 'priority' => 8 ))); } add_action( 'customize_register', 'algibro_shop_customize_register' , 99 ); function algibro_shop_fonts_url(){ $fonts_url = ''; $font_families = array(); /* Translators: If there are characters in your language that are not * supported by Source Sans Pro, translate this to 'off'. Do not translate * into your own language. */ $source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'algibro-shop' ); if ( 'off' !== $source_sans_pro ) { $font_families[] = 'Source Sans Pro:300,400,600,700'; $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), ); $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } return esc_url_raw( $fonts_url ); }