add_section('bLab_body_typography', array( 'title' => __('Body Content Typography', 'beauty-lab'), 'panel' => 'beauty_lab_typography', 'priority' => 1, )); //---body font size on desktop view---- $wp_customize->add_setting('bLab_typo_font_size_max', array( 'default' => 15, 'transport' => 'refresh', 'sanitize_callback' => 'themecon_intval', )); $wp_customize->add_control('bLab_typo_font_size_max_control', array( 'label' => __('Font Size for Desktop view (px)', 'beauty-lab'), 'section' => 'bLab_body_typography', 'settings' => 'bLab_typo_font_size_max', 'type' => 'number', ) ); //---body font size on mobile view---- $wp_customize->add_setting('bLab_typo_font_size_min', array( 'default' => 15, 'transport' => 'refresh', 'sanitize_callback' => 'themecon_intval', )); $wp_customize->add_control('bLab_typo_font_size_min_control', array( 'label' => __('Font Size for Mobile view (px)', 'beauty-lab'), 'section' => 'bLab_body_typography', 'settings' => 'bLab_typo_font_size_min', 'type' => 'number', ) ); //---body line height---- $wp_customize->add_setting('bLab_typo_line_height', array( 'default' => '1.6', 'transport' => 'refresh', 'sanitize_callback' => 'themecon_sanitize_float', )); $wp_customize->add_control('bLab_typo_line_height_control', array( 'label' => __('Line Height (em)', 'beauty-lab'), 'section' => 'bLab_body_typography', 'settings' => 'bLab_typo_line_height', 'type' => 'number', ) ); //---body font weight---- $wp_customize->add_setting('bLab_typo_font_weight', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'themecon_sanitize_select', )); $wp_customize->add_control('bLab_typo_font_weight_control', array( 'label' => __('Font Weight', 'beauty-lab'), 'section' => 'bLab_body_typography', 'settings' => 'bLab_typo_font_weight', 'type' => 'select', 'choices' => themecon_customizer_font_weight(),//it from customizer-select-options.php ) ); //---body text transform---- $wp_customize->add_setting('bLab_typo_text_transform', array( 'default' => 'none', 'transport' => 'refresh', 'sanitize_callback' => 'themecon_sanitize_select', )); $wp_customize->add_control('bLab_typo_text_transform_control', array( 'label' => __('Text Transform', 'beauty-lab'), 'section' => 'bLab_body_typography', 'settings' => 'bLab_typo_text_transform', 'type' => 'select', 'choices' => themecon_customizer_text_transform(),//it from customizer-select-options.php ) ); //---body font family---- $wp_customize->add_setting('bLab_typo_font_family', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'themecon_sanitize_select', )); $wp_customize->add_control('bLab_typo_font_family_control', array( 'label' => __('Font Family', 'beauty-lab'), 'section' => 'bLab_body_typography', 'settings' => 'bLab_typo_font_family', 'type' => 'select', 'choices' => themecon_customizer_google_fonts(),//it from customizer-select-options.php ) ); //---paragraph margin bottom---- $wp_customize->add_setting('bLab_typo_p_margin_btm', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'themecon_intval', )); $wp_customize->add_control('bLab_typo_p_margin_btm_control', array( 'label' => __('Paragraph Margin Bottom (px)', 'beauty-lab'), 'section' => 'bLab_body_typography', 'settings' => 'bLab_typo_p_margin_btm', 'type' => 'number', ) ); } add_action( 'customize_register', 'beauty_lab_customize_typography_body' ); ?>