responsive_setup

The Responsive responsive setup function.

Description

responsive_setup(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function responsive_setup() { 
  2. /** 
  3. * Responsive is now available for translations. 
  4. * Add your files into /languages/ directory. 
  5. * @see http://codex.wordpress.org/Function_Reference/load_theme_textdomain 
  6. */ 
  7. load_theme_textdomain( 'responsive', get_template_directory() . '/languages' ); 
  8.  
  9. /** 
  10. * Add callback for custom TinyMCE editor stylesheets. (editor-style.css) 
  11. * @see http://codex.wordpress.org/Function_Reference/add_editor_style 
  12. */ 
  13. add_editor_style(); 
  14.  
  15. /** 
  16. * This feature enables post and comment RSS feed links to head. 
  17. * @see http://codex.wordpress.org/Function_Reference/add_theme_support#Feed_Links 
  18. */ 
  19. add_theme_support( 'automatic-feed-links' ); 
  20.  
  21. /** 
  22. * This feature enables post-thumbnail support for a theme. 
  23. * @see http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails 
  24. */ 
  25. add_theme_support( 'post-thumbnails' ); 
  26. add_image_size( 'home-feat', 440, 300, true ); 
  27.  
  28. /** 
  29. * This feature enables custom-menus support for a theme. 
  30. * @see http://codex.wordpress.org/Function_Reference/register_nav_menus 
  31. */ 
  32. register_nav_menus( array( 
  33. 'top-menu' => __( 'Top Menu', 'responsive' ),  
  34. 'primary' => __( 'Primary Menu', 'responsive' ),  
  35. 'secondary' => __( 'Secondary Menu', 'responsive'),  
  36. 'footer-menu' => __( 'Footer Menu', 'responsive' ) 
  37. ) );