skt_parallaxme_setup

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

Description

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

Defined (1)

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

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