add_section( 'header_options', array( 'title' => __( 'Header Options', 'bike-shop' ), 'priority' => 30, 'panel' => 'bike_shop_options_panel' ) ); /** Top Header settings **/ // Category Display $wp_customize->add_setting( 'display_top_header', array( 'default' => 1, 'sanitize_callback' => 'bike_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'display_top_header', array( 'type' => 'checkbox', 'label' => __( 'Show Hide Top Header', 'bike-shop' ), 'description' => __( 'Uncheck this to hide top header', 'bike-shop' ), 'section' => 'header_options', ) ); // call us text $wp_customize->add_setting( 'call_us_text', array( 'default' => esc_html('456-456-785','bike-shop'), 'sanitize_callback' => 'bike_shop_sanitize_text', ) ); $wp_customize->add_control( 'call_us_text', array( 'label' => esc_html__( 'Enter the Call us text', 'bike-shop' ), 'description' => __( 'Leave call us text empty to hide call us part', 'bike-shop' ), 'section' => 'header_options', 'type' => 'text', ) ); // call us text $wp_customize->add_setting( 'working_hours_text', array( 'default' => esc_html(' Hours of Operation: 7:00 am - 9:00 pm (Mon - Sun)','bike-shop'), 'sanitize_callback' => 'bike_shop_sanitize_text', ) ); $wp_customize->add_control( 'working_hours_text', array( 'label' => esc_html__( 'Enter the working hours text', 'bike-shop' ), 'description' => __( 'Leave Working Hours Text empty to hide call us part', 'bike-shop' ), 'section' => 'header_options', 'type' => 'text', ) ); // Show hide product search $wp_customize->add_setting( 'display_header_product_search', array( 'default' => 1, 'sanitize_callback' => 'bike_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'display_header_product_search', array( 'type' => 'checkbox', 'label' => __( 'Show / Hide Product Search', 'bike-shop' ), 'description' => __( 'Uncheck this to hide header product search', 'bike-shop' ), 'section' => 'header_options', ) ); // My Account icon $wp_customize->add_setting( 'myaccount_link', array( 'default' => '#', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( 'myaccount_link', array( 'label' => esc_html__( 'My account Link', 'bike-shop' ), 'section' => 'header_options', 'type' => 'url', ) ); $wp_customize->add_setting( 'mylocation_link', array( 'default' => '#', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( 'mylocation_link', array( 'label' => esc_html__( 'My Location Link', 'bike-shop' ), 'section' => 'header_options', 'type' => 'url', ) ); // Show hide product search $wp_customize->add_setting( 'display_header_product_cart', array( 'default' => 1, 'sanitize_callback' => 'bike_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'display_header_product_cart', array( 'type' => 'checkbox', 'label' => __( 'Show / Hide Product Cart', 'bike-shop' ), 'description' => __( 'Uncheck this to hide header product cart', 'bike-shop' ), 'section' => 'header_options', ) ); } endif;