Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* ---------------------------------------------------------------- Customizer */
- function themeslug_theme_customizer( $wp_customize ) {
- $wp_customize->add_section( 'themeslug_logo_section' , array(
- 'title' => __( 'Logo', 'teulet' ),
- 'priority' => 30,
- 'description' => 'Upload a logo for this theme',
- ) );
- $wp_customize->add_setting( 'themeslug_first_logo', array(
- 'default' => get_bloginfo('template_directory') . '/images/logo.png',
- ) );
- $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'themeslug_first_logo', array(
- 'label' => __( 'Current logo', 'teulet' ),
- 'section' => 'themeslug_logo_section',
- 'settings' => 'themeslug_first_logo',
- ) ) );
- }
- add_action('customize_register', 'themeslug_theme_customizer');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement