add_panel( 'general', array( 'title' => __( 'General','blogim' ), 'description' => __('Customize general theme settings','blogim'), 'priority' => 10, ) ); $wp_customize->get_section('title_tagline')->panel = 'general'; $var1=(object) $wp_customize->get_section('nav'); $var1->panel = 'general'; $var2=(object)$wp_customize->get_section('nav'); $var2->priority = 130; $wp_customize->get_section('static_front_page')->panel = 'general'; // FAVICON $wp_customize->add_section( 'gh_theme_favicon', array( 'title' => __('Favicon','blogim'), 'priority' => 30, 'panel' => 'general' ) ); $favicons = array(); $favicons[] = array( 'slug'=>'gh_standard_favicon', 'default' => '', 'label' => __( 'Favicon ( 16x16 )', 'blogim' ) ); $favicons[] = array( 'slug'=>'gh_iphone_favicon', 'default' => '', 'label' => __( 'iPhone Favicon ( 60x60 )', 'blogim' ) ); $favicons[] = array( 'slug'=>'gh_ipad_favicon', 'default' => '', 'label' => __( 'iPad Favicon ( 76x76 )', 'blogim' ) ); $favicons[] = array( 'slug'=>'gh_retina_favicon', 'default' => '', 'label' => __( 'Retina Favicon ( 120x120 )', 'blogim' ) ); foreach($favicons as $favicon){ $wp_customize->add_setting( $favicon['slug'], array( 'default' => $favicon['default'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, $favicon['slug'], array( 'label' => $favicon['label'], 'section' => 'gh_theme_favicon', 'settings' => $favicon['slug'], ) ) ); } // LOGO $wp_customize->add_section( 'gh_theme_logo', array( 'title' => __( 'Logo','blogim'), 'priority' => 31, 'description' => __('Upload your image logo or leave it blank to display Site Title instead', 'blogim'), 'panel' => 'general' ) ); $wp_customize->add_setting( 'gh_logo_big', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'gh_logo_big', array( 'label' => __('Upload Big Logo','blogim'), 'section' => 'gh_theme_logo', 'settings' =>'gh_logo_big', ) ) ); $wp_customize->add_setting( 'gh_logo_big_retina', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'gh_logo_big_retina', array( 'label' => __('Upload Big Logo Retina ( 2x size of big logo )','blogim'), 'section' => 'gh_theme_logo', 'settings' =>'gh_logo_big_retina', ) ) ); $wp_customize->add_setting( 'gh_logo_small', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'gh_logo_small', array( 'label' => __('Upload Small Logo','blogim'), 'section' => 'gh_theme_logo', 'settings' =>'gh_logo_small', ) ) ); $wp_customize->add_setting( 'gh_logo_small_retina', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'gh_logo_small_retina', array( 'label' => __('Upload Small Logo Retina ( 2x size of small logo )','blogim'), 'section' => 'gh_theme_logo', 'settings' =>'gh_logo_small_retina', ) ) );