mh_themes_setup

The MH Corporate lite mh themes setup function.

Description

mh_themes_setup(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function mh_themes_setup() { 
  2.  
  3. $header = array( 
  4. 'default-image' => get_template_directory_uri() . '/images/logo.png',  
  5. 'default-text-color' => '000',  
  6. 'width' => 300,  
  7. 'height' => 100,  
  8. 'flex-width' => true,  
  9. 'flex-height' => true 
  10. ); 
  11. add_theme_support('custom-header', $header); 
  12.  
  13. load_theme_textdomain('mhc', get_template_directory() . '/languages'); 
  14.  
  15. add_theme_support('automatic-feed-links'); 
  16. add_theme_support('custom-background'); 
  17. add_theme_support('post-thumbnails'); 
  18.  
  19. add_image_size('slider', 940, 400, true); 
  20. add_image_size('content', 578, 246, true); 
  21. add_image_size('cp_large', 258, 194, true); 
  22. add_image_size('cp_small', 70, 53, true); 
  23.  
  24. register_nav_menu('main_nav', __('Main Navigation', 'mhc')); 
  25.  
  26. add_filter('use_default_gallery_style', '__return_false');