add_section( 'aspire_archive_boxes', array( 'title' => __( 'Archive pages boxes widgets', 'aspire' ), 'priority' => 35 ) ); $wp_customize->add_setting( 'archive_page_boxes', array( 'default' => 'no', 'sanitize_callback' => 'esc_html') ); $wp_customize->add_control( 'archive_page_boxes', array( 'label' => __( 'Show boxes on archive pages:', 'aspire' ), 'section' => 'aspire_archive_boxes', 'settings' => 'archive_page_boxes', 'type' => 'radio', 'choices' => array( 'no' => __('No', 'aspire' ), 'yes' => __('Yes', 'aspire' ), ), ) ); /*------------------------------------------------------------- //BACKGROUND COLOR on read more, pagination hover --------------------------------------------------------------*/ $wp_customize->add_section( 'aspire_color', array( 'title' => __( 'Button hover color', 'aspire' ), 'priority' => 35 ) ); $wp_customize->add_setting( 'button_hover_bg_color', array( 'default' => '#000', 'type' => 'theme_mod', 'sanitize_callback' => 'esc_html' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'button_hover_bg_color', array( 'label' => __( 'Background Color', 'aspire' ), 'section' => 'aspire_color', 'settings' => 'button_hover_bg_color', 'priority' => 2 ) ) ); $wp_customize->add_setting( 'button_hover_text_color', array( 'default' => '#fff', 'type' => 'theme_mod', 'sanitize_callback' => 'esc_html' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'button_hover_text_color', array( 'label' => __( 'Text Color', 'aspire' ), 'section' => 'aspire_color', 'settings' => 'button_hover_text_color', 'priority' => 2 ) ) ); } add_action( 'customize_register', 'aspire_customize_register' ); function aspire_customize() { global $archive_box_choice, $button_hover_color; $archive_box_choice = get_theme_mod('archive_page_boxes'); ?>