skt_black_setup

Sets up theme defaults and registers support for various WordPress features.

Description

skt_black_setup(); 

Note that this function is hooked into the after_setup_theme hook, which runs before the init hook. The init hook is too late for some features, such as indicating support post thumbnails.


Usage

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

Defined (1)

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

/functions.php  
  1. function skt_black_setup() { 
  2.  
  3. if ( ! isset( $content_width ) ) 
  4. $content_width = 640; /** pixels */ 
  5.  
  6. load_theme_textdomain( 'skt-black', get_template_directory() . '/languages' ); 
  7. add_theme_support( 'automatic-feed-links' ); 
  8. add_theme_support( 'post-thumbnails' ); 
  9. add_theme_support( 'woocommerce' ); 
  10. add_theme_support( 'title-tag' ); 
  11. add_image_size('skt-black-homepage-thumb', 240, 145, true); 
  12. register_nav_menus( array( 
  13. 'primary' => __( 'Primary Menu', 'skt-black' ),  
  14. ) ); 
  15. add_theme_support( 'custom-background', array( 
  16. 'default-color' => '000000' 
  17. ) ); 
  18. add_editor_style( 'editor-style.css' );