get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_section('background_image')->priority = 41; $wp_customize->get_section('colors')->priority = 35; $wp_customize->get_section('colors')->title = __('Background Color', 'good'); $wp_customize->get_setting( 'background_color' )->priority= 1; /* Panel : Color Settings ---------------------------------*/ $wp_customize->add_panel( 'color_settings', array( 'title' => __( 'Colors', 'good' ), 'priority' =>41, ) ); $wp_customize->get_section('colors')->panel = 'color_settings'; /* Section : Layout Setting ---------------------------------*/ $wp_customize->add_section( 'layout', array( 'title' => __( 'Layout Setting', 'good' ), 'priority' => 34, ) ); /* Section : Header Colors ---------------------------------*/ $wp_customize->add_section( 'main_sidebar_colors', array( 'title' => __( 'Header Colors', 'good' ), 'priority' => 37, 'panel' => 'color_settings', ) ); /* Section : Main Content Colors ---------------------------------*/ $wp_customize->add_section( 'content_colors', array( 'title' => __( 'Main Content Colors', 'good' ), 'priority' => 39, 'panel' => 'color_settings', ) ); $wp_customize->add_section( 'secondary_sidebar_colors', array( 'title' => __( 'Secondary Sidebar Colors', 'good' ), 'priority' => 40, 'panel' => 'color_settings', ) ); /* Section : Typography setting ---------------------------------*/ $wp_customize->add_section( 'typography', array( 'title' => __( 'Typography Setting', 'good' ), 'priority' => 42, ) ); /* Section : Post Setting ---------------------------------*/ $wp_customize->add_section( 'post_setting', array( 'title' => __( 'Post Setting', 'good' ), 'priority' => 42, ) ); /* Section : Footer setting ---------------------------------*/ $wp_customize->add_section( 'footer', array( 'title' => __( 'Footer Setting', 'good' ), 'priority' => 43, ) ); } add_action( 'customize_register', 'fancythemes_customize_register' ); /** * List of customizer settings */ function fancythemes_customize_items( $settings ) { $default_color_options = array( 'main_sidebar_background_color' => '#ffffff', 'main_sidebar_color' => '#000000', 'main_sidebar_link_color' => '#ff0000', //'main_sidebar_link_hover' => '#222222', 'main_sidebar_border_color' => '#dddddd', 'main_sidebar_container_border_color' => '#dddddd', 'main_sidebar_search_border_color' => '#dddddd', 'content_background_color' => '#ffffff', 'content_color' => '#222222', 'content_link_color' => '#ff0000', 'content_meta_color' => '#bbbbbb', 'content_border_color' => '#dddddd', 'content_container_border_color' => '#ffffff', 'content_widget_title_color' => '#bbbbbb', 'content_widget_title_border_color' => '#dddddd', 'secondary_sidebar_background_color' => '#000000', 'secondary_sidebar_color' => '#ffffff', 'secondary_sidebar_meta_color' => '#666666', 'secondary_sidebar_link_color' => '#ffffff', 'secondary_sidebar_link_hover_color' => '#ffffff', 'secondary_sidebar_border_color' => '#222222', 'container_border_color' => '#dddddd', 'heading_font' => 'Source_Sans_Pro__400', 'heading_font_style' => 'normal', 'heading_font_weight' => '400', 'heading_font_transform' => 'none', 'body_font' => 'Lora__400,700', 'meta_font' => 'Lora__400,700', 'meta_font_style' => 'normal', 'meta_font_weight' => '400', 'meta_font_transform' => 'none', 'menu_font' => 'Lora__400,700', 'menu_font_style' => 'normal', 'menu_font_weight' => '400', 'menu_font_transform' => 'none', 'widget_title_font' => 'Source_Sans_Pro__400', 'widget_title_font_style' => 'normal', 'widget_title_font_weight' => '400', 'widget_title_font_transform' => 'uppercase', ); /* Section : Logo % Favicon ---------------------------------*/ /* Section : Post Setting ---------------------------------*/ $settings[] = array( 'default' => false, 'id' => 'recent_posts_hide', 'label' => __( 'Hide the default recent posts on homepage', 'good' ), 'section' => 'post_setting', 'priority' => 1, 'control' => 'checkbox', ); $settings[] = array( 'default' => '', 'id' => 'exclude_categories', 'label' => __('Do not show posts if home with these categories', 'good'), 'section' => 'post_setting', 'control' => 'select', 'choices' => fancythemes_taxonomy_array(), ); /* Section : Footer setting ---------------------------------*/ /* Credit text on footer */ $settings[] = array( 'default' => '', 'transport' => 'postMessage', 'id' => 'footer_credit', 'control' => 'textarea', 'label' => __('Credit text on footer', 'good'), 'section' => 'footer', ); /* Additional script */ $settings[] = array( 'default' => '', 'sanitize_callback' => 'fancythemes_sanitize_text', 'id' => 'footer_script', 'control' => 'textarea', 'label' => __('Add aditional script, please do not include