'; //var_dump($wp_customize->sections()); //var_dump($wp_customize->controls()); //echo ''; $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; /** * Your Brand name */ $wp_customize->get_section('title_tagline')->title = __( 'Your Brand Name','bellini' ); $wp_customize->get_control('blogname')->label = __('Site Name', 'bellini'); $wp_customize->get_control('blogdescription')->label = __('Site Description', 'bellini'); /** * Colors Panel. */ $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->get_control( 'header_textcolor' )->section = 'text_color'; $wp_customize->get_setting( 'background_color' )->default = '#eceef1'; $wp_customize->get_control( 'background_color' )->section = 'section_color'; $wp_customize->get_control( 'background_color' )->priority = 3; $wp_customize->get_control( 'background_color' )->label = 'Website Background'; $wp_customize->remove_section('colors'); /*-------------------------------------------------------------- ## Top Panels --------------------------------------------------------------*/ $wp_customize->get_section( 'static_front_page' )->priority = 1; $wp_customize->get_section('static_front_page')->title = __( 'Frontpage Preferences','bellini' ); $wp_customize->get_section( 'static_front_page' )->panel = 'bellini_frontpage_panel'; $wp_customize->get_section( 'title_tagline' )->priority = 2; $wp_customize->get_control( 'background_image' )->section = 'bellini_default_image'; $wp_customize->remove_section('background_image'); $wp_customize->get_control( 'header_image' )->section = 'bellini_default_image'; // Frontpage Panel $wp_customize->add_panel( 'bellini_frontpage_panel', array( 'priority' => 1, 'capability' => 'edit_theme_options', 'title' => __( 'Set Your Frontpage','bellini' ), 'description' => '', ) ); // Color Panel $wp_customize->add_panel( 'bellini_colors_panel', array( 'priority' => 3, 'capability' => 'edit_theme_options', 'title' => __( 'Colors & Typography','bellini' ), 'description' => 'Kidd Color', ) ); // Default Image & Text Panel $wp_customize->add_panel( 'bellini_placeholder_image_panel', array( 'priority' => 100, 'capability' => 'edit_theme_options', 'title' => __( 'Miscellaneous','bellini' ), 'description' => 'Set Default Image', ) ); // Layout & Positioning Panel $wp_customize->add_panel( 'bellini_placeholder_layout_panel', array( 'priority' => 8, 'capability' => 'edit_theme_options', 'title' => __( 'Layout & Positioning','bellini' ), 'description' => 'Set Layout', ) ); /*-------------------------------------------------------------- ## Sections --------------------------------------------------------------*/ // Typography $wp_customize->add_section('bellini_typography',array( 'title' => __( 'Typography', 'bellini' ), 'capability' => 'edit_theme_options', 'priority' => 4, 'panel' => 'bellini_colors_panel' ) ); // Color $wp_customize->add_section('section_color',array( 'title' => __( 'Section Colors', 'bellini' ), 'capability' => 'edit_theme_options', 'priority' => 1, 'panel' => 'bellini_colors_panel' ) ); $wp_customize->add_section('text_color',array( 'title' => __( 'Text Colors', 'bellini' ), 'capability' => 'edit_theme_options', 'priority' => 2, 'panel' => 'bellini_colors_panel' ) ); // Default Image $wp_customize->add_section('bellini_default_image',array( 'title' => __( 'Default Image', 'bellini' ), 'capability' => 'edit_theme_options', 'priority' => 3, 'panel' => 'bellini_placeholder_image_panel' ) ); // Default Text $wp_customize->add_section('bellini_default_text',array( 'title' => __( 'Change Default Text', 'bellini' ), 'capability' => 'edit_theme_options', 'priority' => 4, 'panel' => 'bellini_placeholder_image_panel' ) ); /*-------------------------------------------------------------- ## Settings & Controls --------------------------------------------------------------*/ require(get_template_directory() . '/inc/settings/settings-content.php'); //Default Image & Content require(get_template_directory() . '/inc/settings/settings-position.php'); //Position require(get_template_directory() . '/inc/settings/settings-typography.php'); //Typography require(get_template_directory() . '/inc/settings/settings-color.php'); //Color require(get_template_directory() . '/inc/settings/settings-front.php'); //Front Page Template } add_action( 'customize_register', 'bellini_customize_register' ); function bellini_customizer_head_styles() { $website_width = get_theme_mod('bellini_website_width', '100'); $body_text_color = get_theme_mod('body_text_color', '#333333'); $bellini_primary_color = get_theme_mod('bellini_primary_color', '#2196F3'); $bellini_accent_color = get_theme_mod('bellini_accent_color', '#E3F2FD'); $title_text_color = get_theme_mod('title_text_color', '#000000'); $menu_text_color = get_theme_mod('menu_text_color', '#000000'); $button_text_color = get_theme_mod('button_text_color', '#ffffff'); $link_text_color = get_theme_mod('link_text_color', '#000000'); $link_hover_color = get_theme_mod('link_hover_color', '#000000'); $widget_background_color = get_theme_mod('widget_background_color', '#ffffff'); $header_background_color = get_theme_mod('header_background_color', '#ffffff'); $footer_background_color = get_theme_mod('footer_background_color', '#eceef1'); $button_background_color = get_theme_mod('button_background_color', '#00B0FF'); $bellini_menu_position = get_theme_mod('bellini_menu_position', 'center'); $page_title_position = get_theme_mod('page_title_position', 'center'); $bellini_body_font_size = get_theme_mod('bellini_body_font_size', '16px'); $bellini_title_font_size = get_theme_mod('bellini_title_font_size', '29px'); $bellini_menu_font_size = get_theme_mod('bellini_menu_font_size', '16px'); $woo_category_background_color = get_theme_mod('woo_category_background_color', '#FFEB3B'); $woo_category_background_image = get_theme_mod('woo_category_background_image'); $woo_product_background_color = get_theme_mod('woo_product_background_color', '#eceef1'); $woo_product_background_image = get_theme_mod('woo_product_background_image'); $woo_featured_product_background_color = get_theme_mod('woo_featured_product_background_color', '#eceef1'); $woo_featured_product_background_image = get_theme_mod('woo_featured_product_background_image'); $bellini_blogposts_background_color = get_theme_mod('bellini_blogposts_background_color', '#eceef1'); $bellini_blogposts_background_image = get_theme_mod('bellini_blogposts_background_image'); $bellini_static_slider_button_background_one = get_theme_mod('bellini_static_slider_button_background_one', '#00B0FF'); $bellini_static_slider_button_background_two = get_theme_mod('bellini_static_slider_button_background_two', '#00B0FF'); $slider_background_color_mobile = get_theme_mod('slider_background_color_mobile', '#00B0FF'); $slider_text_color_mobile = get_theme_mod('slider_text_color_mobile', '#00B0FF'); // CSS Classes $primary_color_text = ".site-cart__icon,.product-card__info__price,.product-featured__price .amount,.breadcrumb_last,.single.post-meta,.single.post-meta a,.product-card__info__price .amount,.woocommerce div.product span.price"; $primary_color_background = ".site-search form input[type=submit],.product .onsale,.listed__total,.comment-form input[type=submit],.main-navigation li a:before,.menu-toggle,.woocommerce span.onsale"; $accent_color_text = ".post-meta__category a,.comment-reply-link,.comment__author,.blog-post__meta .post-meta__time,.post-meta__author,.comment-edit-link,.comment__meta__info"; $accent_color_background = ".product-featured__review--centered,.post-meta__tag__item a"; $button_color_background = ".button--secondary,.front__product-featured__text .add_to_cart_button"; $button_color_text = ".button--secondary a,.front__product-featured__text .add_to_cart_button"; ?>