add_section( 'magnificient_logo_section' , array( 'title' => __( 'Logo', 'magnificient' ), 'priority' => 30, 'description' => 'Upload a logo to replace the default site name and description in the header', ) ); /*favicon*/ $wp_customize->add_section( 'magnificient_favicon_section' , array( 'title' => __( 'Favicon', 'magnificient' ), 'priority' => 30, 'description' => 'Upload a favicon for your website', ) ); /*settings*/ /*logo*/ $wp_customize->add_setting( 'magnificient_logo', array( 'sanitize_callback' => 'esc_url_raw' )); /*favicon*/ $wp_customize->add_setting( 'magnificient_favicon', array( 'sanitize_callback' => 'esc_url_raw' )); /*control*/ /*logo*/ $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'magnificient_logo', array( 'label' => __( 'Logo', 'magnificient' ), 'section' => 'magnificient_logo_section', 'settings' => 'magnificient_logo', ) ) ); /*favicon*/ $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'magnificient_favicon', array( 'label' => __( 'Favicon', 'magnificient' ), 'section' => 'magnificient_favicon_section', 'settings' => 'magnificient_favicon', ) ) ); } } add_action('customize_register', 'magnificient_customizer_functions'); ?>