Advertisement
Guest User

Untitled

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