skt_photo_session_setup

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

Description

skt_photo_session_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_photo_session_setup' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = skt_photo_session_setup(); 
  7.  

Defined (1)

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

/functions.php  
  1. function skt_photo_session_setup() { 
  2. load_theme_textdomain( 'skt-photo-session', get_template_directory() . '/languages' ); 
  3. add_theme_support( 'automatic-feed-links' ); 
  4. add_theme_support( 'custom-header' ); 
  5. add_theme_support( 'title-tag' ); 
  6. add_theme_support( 'post-thumbnails' ); 
  7. add_theme_support( 'woocommerce' ); 
  8. add_image_size('homepage-thumb', 240, 145, true); 
  9. register_nav_menus( array( 
  10. 'primary' => __( 'Primary Menu', 'skt-photo-session' ),  
  11. ) ); 
  12. register_nav_menus( array( 
  13. 'main' => __( 'Main Menu', 'skt-photo-session' ),  
  14. ) ); 
  15. register_nav_menus( array( 
  16. 'useful' => __( 'Useful Links', 'skt-photo-session' ),  
  17. ) ); 
  18.  
  19. add_theme_support( 'custom-background', array( 
  20. 'default-color' => '4883bf',  
  21. 'default-image' => get_template_directory_uri().'/images/banner_bg.jpg',  
  22. ) ); 
  23. add_editor_style( 'editor-style.css' );