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'); /** 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';