Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Current implementation
- add_theme_support(
- 'custom-header',
- array(
- 'default-image' => '%s/images/x.jpg',
- 'default-text-color' => '000000',
- 'random-default' => false,
- 'width' => 1500,
- 'height' => 500,
- 'flex-height' => true,
- 'header-text' => true,
- 'uploads' => true,
- 'wp-head-callback' => 'album_colour_styles',
- )
- );
- // Suggested implementation
- add_theme_support(
- 'custom-header',
- array(
- 'default-image' => '%s/images/x.jpg',
- 'default-text-color' => '000000',
- 'random-default' => false,
- 'width' => 1500,
- 'height' => 500,
- 'flex-height' => true,
- 'header-text' => true,
- 'uploads' => true,
- 'wp-head-callback' => 'album_colour_styles',
- 'refresh' => array(
- 'site-title' => '.site-title', // Take care of auto update site title text, and change header colour
- 'site-description' => '.site-description', // Take care of auto update site description
- 'header' => '.branding', // Show & hide title and description
- ),
- )
- );
- //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement