mh_themes_setup

The MH Corporate basic 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. load_theme_textdomain('mh-corporate-basic', get_template_directory() . '/languages'); 
  3. add_filter('use_default_gallery_style', '__return_false'); 
  4. add_theme_support('custom-header', array('default-image' => get_template_directory_uri() . '/images/logo.png', 'default-text-color' => '000', 'width' => 300, 'height' => 100, 'flex-width' => true, 'flex-height' => true)); 
  5. add_theme_support('title-tag'); 
  6. add_theme_support('automatic-feed-links'); 
  7. add_theme_support('custom-background', array('default-color' => 'f7f7f7')); 
  8. add_theme_support('post-thumbnails'); 
  9. add_theme_support('customize-selective-refresh-widgets'); 
  10. add_image_size('slider', 940, 400, true); 
  11. add_image_size('content', 578, 246, true); 
  12. add_image_size('cp_large', 258, 194, true); 
  13. add_image_size('cp_small', 70, 53, true); 
  14. register_nav_menu('main_nav', esc_html__('Main Navigation', 'mh-corporate-basic'));