add_section( 'attorney_header_section' , array( 'title' => __( 'Header', 'attorney' ), 'priority' => 32, 'description' => __( 'Please fill these data so they show on the header of the website', 'attorney' ), ) ); $wp_customize->add_setting( 'attorney_header_phone_number', array ( 'sanitize_callback' => 'wp_filter_nohtml_kses', ) ); $wp_customize->add_control( 'attorney_header_phone_number', array( 'label' => __( 'Enter your phone number', 'attorney' ), 'section' => 'attorney_header_section', 'settings' => 'attorney_header_phone_number', 'priority' => 101, ) ); $wp_customize->add_setting( 'attorney_header_text_below_phone_number', array ( 'sanitize_callback' => 'wp_filter_nohtml_kses', ) ); $wp_customize->add_control( 'attorney_header_text_below_phone_number', array( 'label' => __( 'Text Below The Phone Number', 'attorney' ), 'section' => 'attorney_header_section', 'settings' => 'attorney_header_text_below_phone_number', 'priority' => 101, ) ); $wp_customize->add_setting( 'attorney_header_show_logo_or_firm_name', array( 'sanitize_callback' => 'wp_filter_nohtml_kses' ) ); $wp_customize->add_control( 'attorney_header_show_logo_or_firm_name', array( 'label' => esc_html__( 'Select whether you want to show the logo or the firm name on the header', 'attorney' ), 'section' => 'attorney_header_section', 'type' => 'select', 'choices' => array( 'logo' => esc_html__('Show Logo','attorney'), 'name' => esc_html__('Show Firm Name','attorney'), ) ) ); $wp_customize->add_setting( 'attorney_header_offer_free_consultation', array( 'sanitize_callback' => 'wp_filter_nohtml_kses' ) ); $wp_customize->add_control( 'attorney_header_offer_free_consultation', array( 'label' => esc_html__( 'Do you offer free consultation', 'attorney' ), 'section' => 'attorney_header_section', 'type' => 'select', 'choices' => array( 'yes_show' => esc_html__('Yes and show it on the header','attorney'), 'yes_hide' => esc_html__('Yes but do not show it on the header','attorney'), 'no' => esc_html__('No','attorney'), ) ) ); } endif; add_action('customize_register', 'attorney_theme_customize_header');