minileven_setup

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

Description

minileven_setup(); 

Usage

  1. if ( !function_exists( 'minileven_setup' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/minileven/theme/pub/minileven/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = minileven_setup(); 
  7.  

Defined (1)

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

/modules/minileven/theme/pub/minileven/functions.php  
  1. function minileven_setup() { 
  2. global $wp_version; 
  3.  
  4. /** 
  5. * Custom template tags for this theme. 
  6. */ 
  7. require( get_template_directory() . '/inc/template-tags.php' ); 
  8.  
  9. /** 
  10. * Custom functions that act independently of the theme templates 
  11. */ 
  12. require( get_template_directory() . '/inc/tweaks.php' ); 
  13.  
  14. /** 
  15. * Implement the Custom Header functions 
  16. */ 
  17. require( get_template_directory() . '/inc/custom-header.php' ); 
  18.  
  19. /** Make Minileven available for translation. 
  20. * Translations can be added to the /languages/ directory. 
  21. * If you're building a theme based on Minileven, use a find and replace 
  22. * to change 'minileven' to the name of your theme in all the template files. 
  23. */ 
  24. /** Don't load a minileven textdomain, as it uses the Jetpack textdomain. 
  25. load_theme_textdomain( 'minileven', get_template_directory() . '/languages' ); 
  26. */ 
  27.  
  28. // Add default posts and comments RSS feed links to <head>. 
  29. add_theme_support( 'automatic-feed-links' ); 
  30.  
  31. // This theme uses wp_nav_menu() in one location. 
  32. register_nav_menu( 'primary', __( 'Primary Menu', jetpack ) ); 
  33.  
  34. // Add support for a variety of post formats 
  35. add_theme_support( 'post-formats', array( 'gallery' ) ); 
  36.  
  37. // Add support for custom backgrounds 
  38. add_theme_support( 'custom-background' ); 
  39.  
  40. // Add support for post thumbnails 
  41. add_theme_support( 'post-thumbnails' );