add_section( 'business_article_ship_general_settings', array ( 'priority' => 25, 'capability' => 'edit_theme_options', 'title' => esc_html__( 'General Settings', 'business-article-ship' ) ) ); // Title label $wp_customize->add_setting( 'business_article_ship_preloader_settings', array( 'sanitize_callback' => 'business_article_ship_sanitize_title', ) ); $wp_customize->add_control( new Business_Article_Ship_Title_Info_Control( $wp_customize, 'business_article_ship_preloader_settings', array( 'label' => esc_html__( 'Preloader Settings', 'business-article-ship' ), 'section' => 'business_article_ship_general_settings', 'type' => 'business-article-ship-title', 'settings' => 'business_article_ship_preloader_settings', ) )); // Add an option to enable the preloader $wp_customize->add_setting( 'business_article_ship_enable_preloader', array( 'default' => false, 'type' => 'theme_mod', 'sanitize_callback' => 'business_article_ship_sanitize_checkbox', ) ); $wp_customize->add_control( new Business_Article_Ship_Toggle_Control( $wp_customize, 'business_article_ship_enable_preloader', array( 'label' => esc_html__( 'Show Preloader', 'business-article-ship' ), 'section' => 'business_article_ship_general_settings', 'type' => 'business-article-ship-toggle', 'settings' => 'business_article_ship_enable_preloader', ) )); // Title label $wp_customize->add_setting( 'business_article_ship_scroll_top_settings', array( 'sanitize_callback' => 'business_article_ship_sanitize_title', ) ); $wp_customize->add_control( new Business_Article_Ship_Title_Info_Control( $wp_customize, 'business_article_ship_scroll_top_settings', array( 'label' => esc_html__( 'Scroll Top Settings', 'business-article-ship' ), 'section' => 'business_article_ship_general_settings', 'type' => 'business-article-ship-title', 'settings' => 'business_article_ship_scroll_top_settings', ) )); // Add an option to enable the scrolltop $wp_customize->add_setting( 'business_article_ship_enable_scrolltop', array( 'default' => false, 'type' => 'theme_mod', 'sanitize_callback' => 'business_article_ship_sanitize_checkbox', ) ); $wp_customize->add_control( new Business_Article_Ship_Toggle_Control( $wp_customize, 'business_article_ship_enable_scrolltop', array( 'label' => esc_html__( 'Show Scroll Top', 'business-article-ship' ), 'section' => 'business_article_ship_general_settings', 'type' => 'business-article-ship-toggle', 'settings' => 'business_article_ship_enable_scrolltop', ) )); } endif; add_action( 'customize_register', 'business_article_ship_customizer_general_setting_register' );