esc_html__( 'Primary', 'wisdom1' ), ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', ) ); } endif; add_action( 'after_setup_theme', 'wisdom1_setup' ); /** * Enqueue scripts and styles. */ function wisdom1_scripts() { wp_enqueue_style( 'wisdom1-style', get_stylesheet_uri(), array(), '1.1.0' ); } add_action( 'wp_enqueue_scripts', 'wisdom1_scripts' ); /** * Customizer additions. */ function wisdom1_customize_register( $wp_customize ) { // Add Hero Section $wp_customize->add_section( 'wisdom1_hero_section', array( 'title' => __( 'Hero Section', 'wisdom1' ), 'priority' => 30, ) ); // Headline Setting $wp_customize->add_setting( 'hero_headline', array( 'default' => 'Ancient Wisdom for a Modern World.', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'hero_headline', array( 'label' => __( 'Hero Headline', 'wisdom1' ), 'section' => 'wisdom1_hero_section', 'type' => 'text', ) ); // Subheadline Setting $wp_customize->add_setting( 'hero_subheadline', array( 'default' => 'A collection of biblical insights curated for the thoughtful leader.', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'hero_subheadline', array( 'label' => __( 'Hero Subheadline', 'wisdom1' ), 'section' => 'wisdom1_hero_section', 'type' => 'textarea', ) ); // CTA Text Setting $wp_customize->add_setting( 'hero_cta_text', array( 'default' => 'Start Reading', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'hero_cta_text', array( 'label' => __( 'CTA Button Text', 'wisdom1' ), 'section' => 'wisdom1_hero_section', 'type' => 'text', ) ); // Hero Background Image Setting $wp_customize->add_setting( 'hero_background_image', array( 'default' => get_template_directory_uri() . '/assets/images/hero-default.png', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'hero_background_image', array( 'label' => __( 'Hero Background Image', 'wisdom1' ), 'section' => 'wisdom1_hero_section', 'settings' => 'hero_background_image', ) ) ); } add_action( 'customize_register', 'wisdom1_customize_register' ); /** * Menu fallback */ function wisdom1_menu_fallback() { echo ''; }