Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Stop the original header function from being loaded
- remove_action( 'after_setup_theme', 'newgamer_custom_header_setup' );
- // Create our own header function
- function childtheme_custom_header_setup() {
- $args = array(
- // Set height and width, with a maximum value for the width.
- 'height' => 82,
- 'width' => 610,
- 'max-width' => 610,
- 'header-text' => false,
- // Support flexible height and width.
- 'flex-height' => false,
- 'flex-width' => false,
- // Random image rotation off by default.
- 'random-default' => false,
- 'uploads' => true,
- 'wp-head-callback' => '',
- 'admin-head-callback' => '',
- 'admin-preview-callback' => '',
- );
- }
- // Load the custom child theme header function
- add_action( 'after_setup_theme', 'childtheme_custom_header_setup' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement