'ffffff', ); add_theme_support( 'custom-background', $args ); // // backwards compatibility global $wp_version; if ( version_compare( $wp_version, '3.4', '>=' ) ) : add_theme_support( 'custom-background' ); else : add_custom_background( $args ); endif; // function blogstrap_theme_customizer( $wp_customize ) { $wp_customize->add_section( 'blogstrap_settings_section' , array( 'title' => __( 'Blogstrap Settings', 'blogstrap' ), 'priority' => 1, 'description' => 'Customize the look of your blogstrap theme', ) ); // avatar upload $wp_customize->add_setting( 'blogstrap_logo' ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'blogstrap_logo', array( 'label' => __( 'Avatar', 'blogstrap' ), 'section' => 'blogstrap_settings_section', 'settings' => 'blogstrap_logo', ) ) ); //Short Bio $wp_customize->add_setting( 'bio' ); $wp_customize->add_control( 'bio', array( 'label' => 'Short Bio', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); //twitter $wp_customize->add_setting( 'twitter_handle' ); $wp_customize->add_control( 'twitter_handle', array( 'label' => 'Twitter Name', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); //linkedin $wp_customize->add_setting( 'linkedin_handle' ); $wp_customize->add_control( 'linkedin_handle', array( 'label' => 'Linkedin URL', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); //Facebook $wp_customize->add_setting( 'facebook' ); $wp_customize->add_control( 'facebook', array( 'label' => 'Facebook URL', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); // website $wp_customize->add_setting( 'website' ); $wp_customize->add_control( 'website', array( 'label' => 'Personal Website', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); // copyright $wp_customize->add_setting( 'copyright' ); $wp_customize->add_control( 'copyright', array( 'label' => 'Copyright', 'section' => 'blogstrap_settings_section', 'type' => 'text', ) ); // hide twitter $wp_customize->add_setting( 'hide_twitter' ); $wp_customize->add_control( 'hide_twitter', array( 'type' => 'checkbox', 'label' => 'Hide Twitter', 'section' => 'blogstrap_settings_section', ) ); // hide facebook $wp_customize->add_setting( 'hide_facebook' ); $wp_customize->add_control( 'hide_facebook', array( 'type' => 'checkbox', 'label' => 'Hide Facebook', 'section' => 'blogstrap_settings_section', ) ); // hide linkedin $wp_customize->add_setting( 'hide_linkedin' ); $wp_customize->add_control( 'hide_linkedin', array( 'type' => 'checkbox', 'label' => 'Hide Linkedin', 'section' => 'blogstrap_settings_section', ) ); // hide website $wp_customize->add_setting( 'hide_website' ); $wp_customize->add_control( 'hide_website', array( 'type' => 'checkbox', 'label' => 'Hide Website', 'section' => 'blogstrap_settings_section', ) ); // hide copyright $wp_customize->add_setting( 'hide_copyright' ); $wp_customize->add_control( 'hide_copyright', array( 'type' => 'checkbox', 'label' => 'Hide Copyright', 'section' => 'blogstrap_settings_section', ) ); // customizer end } add_action('customize_register', 'blogstrap_theme_customizer'); // widgetize if (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Widgetized Area', 'id' => 'widgetized-area', 'description' => 'This is a widgetized area.', 'before_widget' => '
', 'before_title' => '