get_section( 'title_tagline')->title = __( 'Site Title, Tagline & Logo', 'bluesand' ); $wp_customize->get_control( 'header_textcolor')->priority = 60; /*Change link color (including visited links)*/ $wp_customize->add_setting( 'bluesand_link_color', array( 'default' => '', 'sanitize_callback' => 'sanitize_hex_color_no_hash' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bluesand_link_color', array ( 'label' => __( 'Link Color', 'bluesand' ), 'priority' => 0, 'section' => 'colors', 'settings' => 'bluesand_link_color' ))); /*Upload Logo*/ $wp_customize->add_setting( 'bluesand_logo', array( 'default' => '', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bluesand_logo', array ( 'description' => __( 'Replaces site title & tagline', 'bluesand' ), 'label' => __( 'Upload Logo', 'bluesand' ), 'section' => 'title_tagline', 'settings' => 'bluesand_logo' ))); /*Remove left sidebar*/ $wp_customize->add_setting( 'bluesand_left_sidebar', array( 'default' => '', 'sanitize_callback' => 'bluesand_sanitize_checkbox' ) ); $wp_customize->add_control( 'bluesand_left_sidebar', array ( 'label' => __( 'Move Sidebar to the Left', 'bluesand' ), 'section' => 'remove_sidebar', 'settings' => 'bluesand_left_sidebar', 'type' => 'checkbox' )); /*Remove Sidebar from all pages*/ $wp_customize->add_setting( 'bluesand_remove_sidebar', array( 'default' => '', 'sanitize_callback' => 'bluesand_sanitize_checkbox' ) ); $wp_customize->add_section( 'remove_sidebar', array( 'title' => __( 'Sidebar & Featured Post', 'bluesand' ), 'priority' => 20, 'description' => __( 'To feature a post, add a custom field to the post with bluesand_feature_this as name and the image link as value. For image link, go to the image\'s edit page and copy File URL. For best results, image dimensions should be at least 960x380.', 'bluesand' ) )); $wp_customize->add_control( 'bluesand_remove_sidebar', array ( 'label' => __( 'Remove Sidebar From Every Page', 'bluesand' ), 'section' => 'remove_sidebar', 'settings' => 'bluesand_remove_sidebar', 'type' => 'checkbox' )); /*Remove Featured Post/Image from home page*/ $wp_customize->add_setting( 'bluesand_remove_featured', array( 'default' => '', 'sanitize_callback' => 'bluesand_sanitize_checkbox' ) ); $wp_customize->add_control( 'bluesand_remove_featured', array ( 'label' => __( 'Disable Featured Post on Home Page', 'bluesand' ), 'section' => 'remove_sidebar', 'settings' => 'bluesand_remove_featured', 'type' => 'checkbox' )); /*Remove Featured Post/Image from category and tag pages*/ $wp_customize->add_setting( 'bluesand_remove_featured_term', array( 'default' => '', 'sanitize_callback' => 'bluesand_sanitize_checkbox' ) ); $wp_customize->add_control( 'bluesand_remove_featured_term', array ( 'label' => __( 'Disable Featured Post on Category & Tag Pages', 'bluesand' ), 'section' => 'remove_sidebar', 'settings' => 'bluesand_remove_featured_term', 'type' => 'checkbox' )); } add_action( 'customize_register', 'bluesand_customize_register' ); /** * Adds css from Customizer to head tags. * * @since Bluesand 1.0 */ function bluesand_customize_css() { ?>