Add sticky header, customizer hero background image, and cinematic post image styles
This commit is contained in:
@@ -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' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user