Add sticky header, customizer hero background image, and cinematic post image styles

This commit is contained in:
Adolfo Reyna
2026-03-12 23:34:08 -04:00
parent c4a6f2f4ab
commit d4d53ca56b
4 changed files with 183 additions and 38 deletions

View File

@@ -81,6 +81,17 @@ function wisdom1_customize_register( $wp_customize ) {
'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' );