themes_setup

The Responsive Minimal themes setup function.

Description

themes_setup(); 

Usage

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

Defined (1)

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

/functions/taxonomies.php  
  1. function themes_setup() { 
  2. // This theme uses post thumbnails 
  3. add_theme_support( 'post-thumbnails' ); 
  4.  
  5. // The height and width of your custom header. You can hook into the theme's own filters to change these values. 
  6. // Add a filter to twentyten_header_image_width and twentyten_header_image_height to change these values. 
  7. define( 'HEADER_IMAGE_WIDTH', apply_filters( 'image_width', 250 ) ); 
  8. define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'image_height', 250 ) ); 
  9.  
  10. // We'll be using post thumbnails for custom header images on posts and pages. 
  11. // We want them to be 940 pixels wide by 198 pixels tall. 
  12. // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. 
  13. set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );