// Scroll Effects Section $wp_customize->add_section('vgd_scroll_effects', array( 'title' => __('Scroll Effects', 'vgd-starter-theme'), 'priority' => 160, )); $wp_customize->add_setting('vgd_scroll_enable_home', array( 'default' => true, 'sanitize_callback' => function($value) { return (bool) $value; }, )); $wp_customize->add_control('vgd_scroll_enable_home', array( 'label' => __('Enable on Home', 'vgd-starter-theme'), 'section' => 'vgd_scroll_effects', 'type' => 'checkbox', )); $wp_customize->add_setting('vgd_scroll_enable_blog', array( 'default' => true, 'sanitize_callback' => function($value) { return (bool) $value; }, )); $wp_customize->add_control('vgd_scroll_enable_blog', array( 'label' => __('Enable on Blog', 'vgd-starter-theme'), 'section' => 'vgd_scroll_effects', 'type' => 'checkbox', )); $wp_customize->add_setting('vgd_scroll_enable_shop', array( 'default' => true, 'sanitize_callback' => function($value) { return (bool) $value; }, )); $wp_customize->add_control('vgd_scroll_enable_shop', array( 'label' => __('Enable on Shop', 'vgd-starter-theme'), 'section' => 'vgd_scroll_effects', 'type' => 'checkbox', )); $wp_customize->add_setting('vgd_scroll_animation_type', array( 'default' => 'fade-up', 'sanitize_callback' => function($value) { $valid = array('none', 'fade-up', 'fade-in', 'slide-left', 'slide-right', 'zoom-in'); return in_array($value, $valid, true) ? $value : 'fade-up'; }, )); $wp_customize->add_control('vgd_scroll_animation_type', array( 'label' => __('General Animation Type', 'vgd-starter-theme'), 'section' => 'vgd_scroll_effects', 'type' => 'select', 'choices' => array( 'none' => __('None', 'vgd-starter-theme'), 'fade-up' => __('Fade Up', 'vgd-starter-theme'), 'fade-in' => __('Fade In', 'vgd-starter-theme'), 'slide-left' => __('Slide Left', 'vgd-starter-theme'), 'slide-right' => __('Slide Right', 'vgd-starter-theme'), 'zoom-in' => __('Zoom In', 'vgd-starter-theme'), ), )); $wp_customize->add_setting('vgd_home_hero_animation_type', array Homepage - Van's Garden Skip to content

Desert Gardening

Gardening Tips and Tricks for Zone 9B