get_section('static_front_page')->priority = 1; $wp_customize->get_control('background_color')->section = 'background_image'; $wp_customize->get_setting('blogname')->transport = 'postMessage'; $wp_customize->get_setting('blogdescription')->transport = 'postMessage'; $wp_customize->get_setting('header_textcolor')->transport = 'postMessage'; if (isset($wp_customize->selective_refresh)) { $wp_customize->selective_refresh->add_partial('blogname', array( 'selector' => '.ms-site-title a', 'render_callback' => 'bigmart_customize_partial_blogname', )); $wp_customize->selective_refresh->add_partial('blogdescription', array( 'selector' => '.ms-site-description', 'render_callback' => 'bigmart_customize_partial_blogdescription', )); } // Register custom section types. $wp_customize->register_section_type('Bigmart_Upgrade_Section'); $wp_customize->add_section(new Bigmart_Upgrade_Section($wp_customize, 'bigmart-pro-section', array( 'priority' => 0, 'pro_text' => esc_html__('Upgrade to Pro', 'bigmart'), 'pro_url' => 'https://wpcirqle.com/products/bigmart' ))); $wp_customize->add_section(new Bigmart_Upgrade_Section($wp_customize, 'bigmart-import-section', array( 'title' => esc_html__('Import Demo Content', 'bigmart'), 'priority' => 0, 'pro_text' => esc_html__('Import', 'bigmart'), 'pro_url' => admin_url('admin.php?page=bigmart-welcome') ))); $wp_customize->add_section(new Bigmart_Upgrade_Section($wp_customize, 'bigmart-doc-section', array( 'title' => esc_html__('Documentation', 'bigmart'), 'priority' => 1000, 'pro_text' => esc_html__('View', 'bigmart'), 'pro_url' => 'http://docs.wpcirqle.com/bigmart' ))); /** Theme Options */ require BIGMART_OPT_DIR . 'options/general-settings.php'; // General Options require BIGMART_OPT_DIR . 'options/color-settings.php'; // Color Options require BIGMART_OPT_DIR . 'options/header-settings.php'; // Header Options require BIGMART_OPT_DIR . 'options/footer-settings.php'; // Footer Options require BIGMART_OPT_DIR . 'options/sidebar-settings.php'; // Sidebar Options require BIGMART_OPT_DIR . 'options/blog-settings.php'; // Blog Options require BIGMART_OPT_DIR . 'options/social-icons.php'; // Sidebar Options require BIGMART_OPT_DIR . 'options/typography.php'; // Typography Options require BIGMART_OPT_DIR . 'options/pro-features.php'; // Pro Features do_action('bigmart_new_options', $wp_customize); } add_action('customize_register', 'bigmart_theme_options'); /** * Render the site title for the selective refresh partial. * * @return void */ function bigmart_customize_partial_blogname() { bloginfo('name'); } /** * Render the site tagline for the selective refresh partial. * * @return void */ function bigmart_customize_partial_blogdescription() { bloginfo('description'); } /** Helper Functions */ require BIGMART_OPT_DIR . 'custom-controls/typography/typography.php'; require BIGMART_OPT_DIR . 'includes/helpers.php'; require BIGMART_OPT_DIR . 'includes/fonts.php';