Advertisement
Angius

functions.php

Jul 13th, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. <?php
  2. // Stop the original header function from being loaded
  3. remove_action( 'after_setup_theme', 'newgamer_custom_header_setup' );
  4.  
  5. // Create our own header function
  6. function childtheme_custom_header_setup() {
  7. $args = array(
  8.  
  9. // Set height and width, with a maximum value for the width.
  10. 'height' => 82,
  11. 'width' => 610,
  12. 'max-width' => 610,
  13. 'header-text' => false,
  14.  
  15. // Support flexible height and width.
  16. 'flex-height' => false,
  17. 'flex-width' => false,
  18.  
  19. // Random image rotation off by default.
  20. 'random-default' => false,
  21.  
  22. 'uploads' => true,
  23. 'wp-head-callback' => '',
  24. 'admin-head-callback' => '',
  25. 'admin-preview-callback' => '',
  26. );
  27.  
  28. }
  29.  
  30. // Load the custom child theme header function
  31. add_action( 'after_setup_theme', 'childtheme_custom_header_setup' );
  32.  
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement