Advertisement
Guest User

Untitled

a guest
Nov 15th, 2011
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <?php
  2.  
  3. function my_header_image_height($height) {
  4. return 150;
  5. }
  6. add filter( 'twentyeleven_header_image_height', 'my_header_image_height');
  7.  
  8. // In child themes the functions.php is applied before the parent
  9. // theme's functions.php. So we need to wait for the parent theme to add
  10. // it's filter before we can remove it.
  11. add_action( 'after_setup_theme', 'my_child_theme_setup' );
  12.  
  13. function my_child_theme_setup() {
  14. // Removes the filter that adds the "singular" class to the body element
  15. // which centers the content and does not allow for a sidebar
  16. remove_filter( 'body_class', 'twentyeleven_body_classes' );
  17. }
  18.  
  19. ?>
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement