Advertisement
Guest User

Child Theme Setup

a guest
Oct 3rd, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. /*
  2.  * Code in my child theme functions.php
  3. */
  4. function required_starter_after_parent_theme_setup() {
  5.  
  6.     // This is the hack, that removes the notice
  7.     /*
  8.     if ( ! isset( $GLOBALS['custom_image_header'] ))
  9.         $GLOBALS['custom_image_header'] = array();
  10.     */
  11.     remove_theme_support('custom-header');
  12.     remove_theme_support('post-formats');
  13.  
  14. }
  15. // Run after parent theme setup => http://justintadlock.com/archives/2010/12/30/wordpress-theme-function-files
  16. add_action( 'after_setup_theme', 'required_starter_after_parent_theme_setup', 11 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement