skt_pathway_setup

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

Description

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

Defined (1)

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

/functions.php  
  1. function skt_pathway_setup() { 
  2.  
  3. if ( ! isset( $content_width ) ) 
  4. $content_width = 640; /** pixels */ 
  5.  
  6.  
  7. load_theme_textdomain( 'skt-pathway', get_template_directory() . '/languages' ); 
  8. add_theme_support( 'automatic-feed-links' ); 
  9. add_theme_support( 'post-thumbnails' ); 
  10. add_theme_support( 'woocommerce' ); 
  11. add_image_size('homepage-thumb', 240, 145, true); 
  12. add_theme_support( 'title-tag' ); 
  13. add_theme_support( 'custom-logo', array( 
  14. 'height' => 35,  
  15. 'width' => 145,  
  16. 'flex-height' => true,  
  17. ) );  
  18. add_theme_support( 'custom-header', array( 'header-text' => false ) ); 
  19.  
  20. register_nav_menus( array( 
  21. 'primary' => __( 'Primary Menu', 'skt-pathway' ),  
  22. 'footer' => __( 'Footer Menu', 'skt-pathway' ),  
  23. ) ); 
  24. add_theme_support( 'custom-background', array( 
  25. 'default-color' => 'eae9e9' 
  26. ) ); 
  27. add_editor_style( 'editor-style.css' );