twentyfifteen_wpcom_setup

Adds support for wp.com-specific theme functions.

Description

twentyfifteen_wpcom_setup(); 

Usage

  1. if ( !function_exists( 'twentyfifteen_wpcom_setup' ) ) { 
  2. require_once '/inc/wpcom.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentyfifteen_wpcom_setup(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/wpcom.php  
  1. function twentyfifteen_wpcom_setup() { 
  2. global $themecolors; 
  3.  
  4. // Set theme colors for third party services. 
  5. if ( ! isset( $themecolors ) ) { 
  6. $themecolors = array( 
  7. 'bg' => 'ffffff',  
  8. 'border' => 'eaeaea',  
  9. 'text' => '333333',  
  10. 'link' => '333333',  
  11. 'url' => '333333',  
  12. ); 
  13.  
  14. // Add theme support for Site Logo. 
  15. add_image_size( 'twentyfifteen-logo', 1466, 272 ); 
  16. add_theme_support( 'site-logo', array( 'size' => 'twentyfifteen-logo' ) );