Advertisement
salmancreation

after_setup_theme wordpress

Jul 1st, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1.   // Enable support for Post Formats.
  2.   add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
  3.  
  4.   // Setup the WordPress core custom background feature.
  5.   add_theme_support( 'custom-background', apply_filters( 'sparkling_custom_background_args', array(
  6.     'default-color' => 'F2F2F2',
  7.     'default-image' => '',
  8.   ) ) );
  9.  
  10.   // Enable support for HTML5 markup.
  11.   add_theme_support( 'html5', array(
  12.     'comment-list',
  13.     'search-form',
  14.     'comment-form',
  15.     'gallery',
  16.     'caption',
  17.   ) );
  18.  
  19.   /*
  20.    * Let WordPress manage the document title.
  21.    * By adding theme support, we declare that this theme does not use a
  22.    * hard-coded <title> tag in the document head, and expect WordPress to
  23.    * provide it for us.
  24.    */
  25.   add_theme_support( 'title-tag' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement