'bg_color', 'default' => '', 'label' => __( 'Background Color', 'blogged' ) ); $colors[] = array( 'slug'=>'primary_color', 'default' => '', 'label' => __( 'Primary Color ', 'blogged' ) ); $colors[] = array( 'slug'=>'secondary_color', 'default' => '', 'label' => __( 'Links Color', 'blogged' ) ); $colors[] = array( 'slug'=>'tertiary_color', 'default' => '', 'label' => __( 'Widget Links', 'blogged' ) ); foreach($colors as $color) { $wp_customize->add_setting( $color['slug'], array( 'default' => $color['default'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $color['slug'], array( 'label' => $color['label'], 'section' => 'colors', 'settings' => $color['slug'] ))); } // Theme Colors Ends // Logo Uploader $wp_customize->add_section( 'blogged_logo_fav_section' , array( 'title' => __( 'Site Logo & Favicon', 'blogged' ), 'priority' => 30, 'description' => 'Upload a logo to replace the default site name and description in the header',) ); $wp_customize->add_setting( 'blogged_logo' ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'blogged_logo', array( 'label' => __( 'Site Logo ( Max height - 60px)', 'blogged' ), 'section' => 'blogged_logo_fav_section', 'settings' => 'blogged_logo', ) ) ); $wp_customize->add_setting( 'blogged_favicon' ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'blogged_favicon', array( 'label' => __( 'Site Favicon ( 16px X 16px)', 'blogged' ), 'section' => 'blogged_logo_fav_section', 'settings' => 'blogged_favicon', ) ) ); // Logo Uploader Ends // Footer Copyright Section $wp_customize->add_section( 'fcopyright', array( 'title' => 'Footer Copyright', // The title of section 'description' => 'Add Your Copyright Notes Here.', // The description of section 'priority' => '900', ) ); $wp_customize->add_setting( 'blogged_footer_cr_left', array('default' => 'Your Copyright Here.',) ); $wp_customize->add_control( 'blogged_footer_cr_left', array('label' => 'Copyright','section' => 'fcopyright',) ); } // Footer Copyright Section Ends // This will output the custom WordPress settings to the live theme's WP head. */ function header_output() { $sidebar_pos = get_theme_mod('sidebar_position_option'); $bgcolor = get_theme_mod('bg_color'); $primarycolor = get_theme_mod('primary_color'); $secondarycolor = get_theme_mod('secondary_color'); $tertiarycolor = get_theme_mod('tertiary_color'); ?>