esc_html__( 'Primary Menu', 'fashion' ), 'secondary-menu' => esc_html__( 'Secondary Menu', 'fashion' ), 'footer-menu' => esc_html__( 'Footer Menu', 'fashion' ), ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat' ) ); function theme_styles() { wp_enqueue_style( 'main_css', get_template_directory_uri() . '/style.css',false, null ); wp_enqueue_style( 'custom-google-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,latin-ext', false, null ); wp_enqueue_style( 'custom-google-fonts-2', 'http://fonts.googleapis.com/css?family=Playfair+Display:regular,italic,700,700italic,900,900italic|Poppins:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic|Oswald:200,300,regular,500,600,700&ver=4.9.7', false, null ); wp_enqueue_style( 'fontawesome_css', get_template_directory_uri() . '/css/font-awesome.css',false, null ); wp_enqueue_style( 'fancybox_css', 'https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.css', false, null ); wp_enqueue_style( 'et-core_css', get_template_directory_uri() . '/css/et-core-fashion.css',false, null ); wp_enqueue_style( 'dev_css', get_template_directory_uri() . '/style-dev.css',false, null ); } add_action( 'wp_enqueue_scripts', 'theme_styles'); function theme_js() { global $wp_scripts; wp_enqueue_script( 'my_custom_js', 'https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.js', false, null, true); } add_action( 'wp_enqueue_scripts', 'theme_js'); add_action( 'body_class', 'my_custom_class'); function my_custom_class( $classes ) { $classes[] = 'et_fixed_nav'; $classes[] = 'et_pb_gutters3'; $classes[] = 'et_header_style_left'; return $classes; } function fashion_widgets_init() { register_sidebar( array( 'name' => __( 'Widget Area', 'fashion' ), 'id' => 'sidebar-1', 'description' => __( 'Add widgets here to appear in your sidebar.', 'fashion' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'fashion_widgets_init' ); //Customizer function your_theme_new_customizer_settings($wp_customize) { $wp_customize->add_panel( 'custom_home_section' , array( 'title' => esc_html__( 'Home Section', 'fashion' ), 'priority' => 11, ) ); $wp_customize->add_section( 'home_page_banner' , array( 'title' => 'Home Banner', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting('home_banner_image', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_banner_image', array( 'label' => 'Upload Image', 'section' => 'home_page_banner', 'description' => 'Image Size should be 800 x 824.', 'settings' => 'home_banner_image', ) ) ); $wp_customize->add_setting( 'home_banner_title', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_banner_title',array( 'label' => 'Title', 'section' => 'home_page_banner', 'type' => 'text', 'settings' => 'home_banner_title', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_banner_content', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_banner_content',array( 'label' => 'Content', 'section' => 'home_page_banner', 'type' => 'textarea', 'settings' => 'home_banner_content', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_banner_btn_text', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_banner_btn_text',array( 'label' => 'Button Text', 'section' => 'home_page_banner', 'type' => 'text', 'settings' => 'home_banner_btn_text', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_banner_btn_url', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_banner_btn_url',array( 'label' => 'Button Url', 'section' => 'home_page_banner', 'type' => 'text', 'settings' => 'home_banner_btn_url', 'priority' => 10, ) ) ); $wp_customize->add_section( 'home_page_section_1' , array( 'title' => 'Home Section 1', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting('home_section_image_1', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_1', array( 'label' => 'Upload Image', 'section' => 'home_page_section_1', 'description' => 'Image Size should be 800 x 828.', 'settings' => 'home_section_image_1', ) ) ); $wp_customize->add_setting( 'home_section_title_1', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_1',array( 'label' => 'Title', 'section' => 'home_page_section_1', 'type' => 'text', 'settings' => 'home_section_title_1', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_content_1', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_content_1',array( 'label' => 'Content', 'section' => 'home_page_section_1', 'type' => 'textarea', 'settings' => 'home_section_content_1', 'priority' => 10, ) ) ); $wp_customize->add_section( 'home_page_section_2' , array( 'title' => 'Home Section 2', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting( 'home_section_title_2', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_2',array( 'label' => 'Title', 'section' => 'home_page_section_2', 'type' => 'text', 'settings' => 'home_section_title_2', 'priority' => 10, ) ) ); $wp_customize->add_section( 'home_page_section_3' , array( 'title' => 'Home Section 3', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting('home_section_image_3', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_3', array( 'label' => 'Upload Image', 'section' => 'home_page_section_3', 'description' => 'Image Size should be 800 x 1129.', 'settings' => 'home_section_image_3', ) ) ); $wp_customize->add_setting( 'home_section_title_3', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_3',array( 'label' => 'Title', 'section' => 'home_page_section_3', 'type' => 'text', 'settings' => 'home_section_title_3', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_content_3', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_content_3',array( 'label' => 'Content', 'section' => 'home_page_section_3', 'type' => 'textarea', 'settings' => 'home_section_content_3', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_text_3', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_text_3',array( 'label' => 'Button Text', 'section' => 'home_page_section_3', 'type' => 'text', 'settings' => 'home_section_btn_text_3', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_url_3', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_url_3',array( 'label' => 'Button Url', 'section' => 'home_page_section_3', 'type' => 'text', 'settings' => 'home_section_btn_url_3', 'priority' => 10, ) ) ); $wp_customize->add_section( 'home_page_section_4' , array( 'title' => 'Home Section 4', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting('home_section_image_4', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_4', array( 'label' => 'Upload Image', 'section' => 'home_page_section_4', 'description' => 'Image Size should be 800 X 977.', 'settings' => 'home_section_image_4', ) ) ); $wp_customize->add_setting( 'home_section_title_4', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_4',array( 'label' => 'Title', 'section' => 'home_page_section_4', 'type' => 'text', 'settings' => 'home_section_title_4', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_content_4', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_content_4',array( 'label' => 'Content', 'section' => 'home_page_section_4', 'type' => 'textarea', 'settings' => 'home_section_content_4', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_text_4', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_text_4',array( 'label' => 'Button Text', 'section' => 'home_page_section_4', 'type' => 'text', 'settings' => 'home_section_btn_text_4', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_url_4', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_url_4',array( 'label' => 'Button Url', 'section' => 'home_page_section_4', 'type' => 'text', 'settings' => 'home_section_btn_url_4', 'priority' => 10, ) ) ); $wp_customize->add_section( 'home_page_section_5' , array( 'title' => 'Home Section 5', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting('home_section_image_5', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_5', array( 'label' => 'Upload Image', 'section' => 'home_page_section_5', 'description' => 'Image Size should be 800 x 984.', 'settings' => 'home_section_image_5', ) ) ); $wp_customize->add_setting( 'home_section_title_5', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_5',array( 'label' => 'Title', 'section' => 'home_page_section_5', 'type' => 'text', 'settings' => 'home_section_title_5', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_content_5', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_content_5',array( 'label' => 'Content', 'section' => 'home_page_section_5', 'type' => 'textarea', 'settings' => 'home_section_content_5', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_text_5', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_text_5',array( 'label' => 'Button Text', 'section' => 'home_page_section_5', 'type' => 'text', 'settings' => 'home_section_btn_text_5', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_url_5', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_url_5',array( 'label' => 'Button Url', 'section' => 'home_page_section_5', 'type' => 'text', 'settings' => 'home_section_btn_url_5', 'priority' => 10, ) ) ); $wp_customize->add_section( 'home_page_section_6' , array( 'title' => 'Home Section 6', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting( 'home_section_title_6', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_6',array( 'label' => 'Title', 'section' => 'home_page_section_6', 'type' => 'text', 'settings' => 'home_section_title_6', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_content_6', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_content_6',array( 'label' => 'Content', 'section' => 'home_page_section_6', 'type' => 'textarea', 'settings' => 'home_section_content_6', 'priority' => 10, ) ) ); $wp_customize->add_setting('home_section_image_6_1', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_6_1', array( 'label' => 'Upload Image 1', 'section' => 'home_page_section_6', 'description' => 'Image Size should be 400 x 600.', 'settings' => 'home_section_image_6_1', ) ) ); $wp_customize->add_setting( 'home_section_title_6_1', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_6_1',array( 'label' => 'Title 1', 'section' => 'home_page_section_6', 'type' => 'text', 'settings' => 'home_section_title_6_1', 'priority' => 10, ) ) ); $wp_customize->add_setting('home_section_image_6_2', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_6_2', array( 'label' => 'Upload Image 2', 'section' => 'home_page_section_6', 'description' => 'Image Size should be 400 x 600.', 'settings' => 'home_section_image_6_2', ) ) ); $wp_customize->add_setting( 'home_section_title_6_2', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_6_2',array( 'label' => 'Title 2', 'section' => 'home_page_section_6', 'type' => 'text', 'settings' => 'home_section_title_6_2', 'priority' => 10, ) ) ); $wp_customize->add_setting('home_section_image_6_3', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_6_3', array( 'label' => 'Upload Image 3', 'section' => 'home_page_section_6', 'description' => 'Image Size should be 400 x 600.', 'settings' => 'home_section_image_6_3', ) ) ); $wp_customize->add_setting( 'home_section_title_6_3', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_6_3',array( 'label' => 'Title 3', 'section' => 'home_page_section_6', 'type' => 'text', 'settings' => 'home_section_title_6_3', 'priority' => 10, ) ) ); $wp_customize->add_setting('home_section_image_6_4', array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_6_4', array( 'label' => 'Upload Image 4', 'section' => 'home_page_section_6', 'description' => 'Image Size should be 400 x 600.', 'settings' => 'home_section_image_6_4', ) ) ); $wp_customize->add_setting( 'home_section_title_6_4', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_6_4',array( 'label' => 'Title 4', 'section' => 'home_page_section_6', 'type' => 'text', 'settings' => 'home_section_title_6_4', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_text_6', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_text_6',array( 'label' => 'Button Text', 'section' => 'home_page_section_6', 'type' => 'text', 'settings' => 'home_section_btn_text_6', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_url_6', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_url_6',array( 'label' => 'Button Url', 'section' => 'home_page_section_6', 'type' => 'text', 'settings' => 'home_section_btn_url_6', 'priority' => 10, ) ) ); $wp_customize->add_section( 'home_page_section_7' , array( 'title' => 'Home Section 7', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting('home_section_image_7', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_7', array( 'label' => 'Upload Image', 'section' => 'home_page_section_7', 'description' => 'Image Size should be 800 x 954.', 'settings' => 'home_section_image_7', ) ) ); $wp_customize->add_setting( 'home_section_title_7', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_7',array( 'label' => 'Title', 'section' => 'home_page_section_7', 'type' => 'text', 'settings' => 'home_section_title_7', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_content_7', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_content_7',array( 'label' => 'Content', 'section' => 'home_page_section_7', 'type' => 'textarea', 'settings' => 'home_section_content_7', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_text_7', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_text_7',array( 'label' => 'Button Text', 'section' => 'home_page_section_7', 'type' => 'text', 'settings' => 'home_section_btn_text_7', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_url_7', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_url_7',array( 'label' => 'Button Url', 'section' => 'home_page_section_7', 'type' => 'text', 'settings' => 'home_section_btn_url_7', 'priority' => 10, ) ) ); $wp_customize->add_section( 'home_page_section_8' , array( 'title' => 'Home Section 8', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting( 'home_section_title_8', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_8',array( 'label' => 'Title', 'section' => 'home_page_section_8', 'type' => 'text', 'settings' => 'home_section_title_8', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_content_8', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_content_8',array( 'label' => 'Content', 'section' => 'home_page_section_8', 'type' => 'textarea', 'settings' => 'home_section_content_8', 'priority' => 10, ) ) ); $wp_customize->add_setting('home_section_image_8_1', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_8_1', array( 'label' => 'Upload Image 1', 'section' => 'home_page_section_8', 'description' => 'Image Size should be 800 x 430.', 'settings' => 'home_section_image_8_1', ) ) ); $wp_customize->add_setting( 'home_section_title_8_1', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_8_1',array( 'label' => 'Title 1', 'section' => 'home_page_section_8', 'type' => 'text', 'settings' => 'home_section_title_8_1', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_content_8_1', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_content_8_1',array( 'label' => 'Sub Title 1', 'section' => 'home_page_section_8', 'type' => 'text', 'settings' => 'home_section_content_8_1', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_text_8_1', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_text_8_1',array( 'label' => 'Button Text 1', 'section' => 'home_page_section_8', 'type' => 'text', 'settings' => 'home_section_btn_text_8_1', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_link_8_1', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_link_8_1',array( 'label' => 'Button Link 1', 'section' => 'home_page_section_8', 'type' => 'text', 'settings' => 'home_section_btn_link_8_1', 'priority' => 10, ) ) ); $wp_customize->add_setting('home_section_image_8_2', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_8_2', array( 'label' => 'Upload Image 2', 'section' => 'home_page_section_8', 'description' => 'Image Size should be 800 x 430.', 'settings' => 'home_section_image_8_2', ) ) ); $wp_customize->add_setting( 'home_section_title_8_2', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_8_2',array( 'label' => 'Title 2', 'section' => 'home_page_section_8', 'type' => 'text', 'settings' => 'home_section_title_8_2', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_sub_title_8_2', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_sub_title_8_2',array( 'label' => 'Sub Title 2', 'section' => 'home_page_section_8', 'type' => 'text', 'settings' => 'home_section_sub_title_8_2', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_content_8_2', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_content_8_2',array( 'label' => 'Content 2', 'section' => 'home_page_section_8', 'type' => 'text', 'settings' => 'home_section_content_8_2', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_text_8_2', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_text_8_2',array( 'label' => 'Button Text 2', 'section' => 'home_page_section_8', 'type' => 'text', 'settings' => 'home_section_btn_text_8_2', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_link_8_2', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_link_8_2',array( 'label' => 'Button Link 2', 'section' => 'home_page_section_8', 'type' => 'text', 'settings' => 'home_section_btn_link_8_2', 'priority' => 10, ) ) ); $wp_customize->add_section( 'home_page_section_9' , array( 'title' => 'Home Section 9', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting('home_section_image_9_1', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_9_1', array( 'label' => 'Upload Image 1', 'section' => 'home_page_section_9', 'description' => 'Image Size should be 400 x 600.', 'settings' => 'home_section_image_9_1', ) ) ); $wp_customize->add_setting( 'home_section_title_9_1', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_9_1',array( 'label' => 'Title 1', 'section' => 'home_page_section_9', 'type' => 'text', 'settings' => 'home_section_title_9_1', 'priority' => 10, ) ) ); $wp_customize->add_setting('home_section_image_9_2', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_9_2', array( 'label' => 'Upload Image 2', 'section' => 'home_page_section_9', 'description' => 'Image Size should be 400 x 600.', 'settings' => 'home_section_image_9_2', ) ) ); $wp_customize->add_setting( 'home_section_title_9_2', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_9_2',array( 'label' => 'Title 2', 'section' => 'home_page_section_9', 'type' => 'text', 'settings' => 'home_section_title_9_2', 'priority' => 10, ) ) ); $wp_customize->add_setting('home_section_image_9_3', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_9_3', array( 'label' => 'Upload Image 3', 'section' => 'home_page_section_9', 'description' => 'Image Size should be 400 x 600.', 'settings' => 'home_section_image_9_3', ) ) ); $wp_customize->add_setting( 'home_section_title_9_3', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_9_3',array( 'label' => 'Title 3', 'section' => 'home_page_section_9', 'type' => 'text', 'settings' => 'home_section_title_9_3', 'priority' => 10, ) ) ); $wp_customize->add_setting('home_section_image_9_4', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_section_image_9_4', array( 'label' => 'Upload Image 4', 'section' => 'home_page_section_9', 'description' => 'Image Size should be 400 x 600.', 'settings' => 'home_section_image_9_4', ) ) ); $wp_customize->add_setting( 'home_section_title_9_4', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_9_4',array( 'label' => 'Title 4', 'section' => 'home_page_section_9', 'type' => 'text', 'settings' => 'home_section_title_9_4', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_text_9', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_text_9',array( 'label' => 'Button Text', 'section' => 'home_page_section_9', 'type' => 'text', 'settings' => 'home_section_btn_text_9', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_url_9', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_url_9',array( 'label' => 'Button Url', 'section' => 'home_page_section_9', 'type' => 'text', 'settings' => 'home_section_btn_url_9', 'priority' => 10, ) ) ); $wp_customize->add_section( 'home_page_section_10' , array( 'title' => 'Home Section 10', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting( 'home_section_title_10', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_title_10',array( 'label' => 'Title', 'section' => 'home_page_section_10', 'type' => 'text', 'settings' => 'home_section_title_10', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_content_10', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_content_10',array( 'label' => 'Content', 'section' => 'home_page_section_10', 'type' => 'textarea', 'settings' => 'home_section_content_10', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_text_10', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_text_10',array( 'label' => 'Button Text', 'section' => 'home_page_section_10', 'type' => 'text', 'settings' => 'home_section_btn_text_10', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'home_section_btn_url_10', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,'home_section_btn_url_10',array( 'label' => 'Button Url', 'section' => 'home_page_section_10', 'type' => 'text', 'settings' => 'home_section_btn_url_10', 'priority' => 10, ) ) ); $wp_customize->add_section( 'home_footer_section' , array( 'title' => 'Home Footer Section', 'panel' => 'custom_home_section', ) ); $wp_customize->add_setting('home_footer_image', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'home_footer_image', array( 'label' => 'Upload Image', 'section' => 'home_footer_section', 'description' => 'Image Size should be 800 x 824.', 'settings' => 'home_footer_image', ) ) ); } add_action('customize_register', 'your_theme_new_customizer_settings'); if ( is_singular() ) wp_enqueue_script( "comment-reply" ); wp_link_pages(); add_theme_support( "custom-header"); add_theme_support( "custom-background"); add_editor_style();