add_section( 'new_section_item' , array( 'title' => esc_html__( 'Theme Options', 'tsoft-info' ), 'priority' => 130 ) ); // Add Post Meta Settings $wp_customize->add_setting( 'tsoft_theme_options[meta_date]', array( 'default' => true, 'type' => 'option', 'transport' => 'refresh', 'sanitize_callback' => 'tsoft_sanitize_checkbox' ) ); $wp_customize->add_control( 'tsoft_theme_options[meta_date]', array( 'label' => esc_html__( 'Display post date', 'tsoft-info' ), 'section' => 'new_section_item', 'settings' => 'tsoft_theme_options[meta_date]', 'type' => 'checkbox', 'priority' => 1 ) ); $wp_customize->add_setting( 'tsoft_theme_options[meta_author]', array( 'default' => true, 'type' => 'option', 'transport' => 'refresh', 'sanitize_callback' => 'tsoft_sanitize_checkbox' ) ); $wp_customize->add_control( 'tsoft_theme_options[meta_author]', array( 'label' => esc_html__( 'Display post author', 'tsoft-info' ), 'section' => 'new_section_item', 'settings' => 'tsoft_theme_options[meta_author]', 'type' => 'checkbox', 'priority' => 2 ) ); $wp_customize->add_setting( 'tsoft_theme_options[meta_category]', array( 'default' => true, 'type' => 'option', 'transport' => 'refresh', 'sanitize_callback' => 'tsoft_sanitize_checkbox' ) ); $wp_customize->add_control( 'tsoft_theme_options[meta_category]', array( 'label' => esc_html__( 'Display post categories', 'tsoft-info' ), 'section' => 'new_section_item', 'settings' => 'tsoft_theme_options[meta_category]', 'type' => 'checkbox', 'priority' => 3 ) ); $wp_customize->add_setting( 'tsoft_theme_options[meta_tags]', array( 'default' => true, 'type' => 'option', 'transport' => 'refresh', 'sanitize_callback' => 'tsoft_sanitize_checkbox' ) ); $wp_customize->add_control( 'tsoft_theme_options[meta_tags]', array( 'label' => esc_html__( 'Display post tags', 'tsoft-info' ), 'section' => 'new_section_item', 'settings' => 'tsoft_theme_options[meta_tags]', 'type' => 'checkbox', 'priority' => 6 ) ); // add custom color selectors DAVOR $wp_customize->add_setting( 'content_text_color', array( 'default' => '#0c5272', 'type' => 'option', 'transport' => 'refresh', 'sanitize_callback' => 'tsoft_sanitize_checkbox' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'content_text_color', array( 'label' => __( 'Color styling', 'tsoft-info' ), 'section' => 'new_section_item', 'settings' => 'content_text_color', 'priority' => 4 ) ) ); // For Deactivate Google Font $wp_customize->add_setting( 'tsoft_theme_options[deactivate_google_fonts]', array( 'default' => false, 'type' => 'option', 'transport' => 'refresh', 'sanitize_callback' => 'tsoft_sanitize_checkbox' ) ); $wp_customize->add_control( 'tsoft_theme_options[deactivate_google_fonts]', array( 'label' => esc_html__( 'Deactivate Google Fonts in case your language is not compatible.', 'tsoft-info' ), 'section' => 'new_section_item', 'settings' => 'tsoft_theme_options[deactivate_google_fonts]', 'type' => 'checkbox', 'priority' => 5 ) ); }