mh_newsdesk_lite_themes_setup

The MH Newsdesk lite mh newsdesk lite themes setup function.

Description

mh_newsdesk_lite_themes_setup(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function mh_newsdesk_lite_themes_setup() { 
  2. load_theme_textdomain('mh-newsdesk-lite', get_template_directory() . '/languages'); 
  3. add_filter('use_default_gallery_style', '__return_false'); 
  4. add_post_type_support('page', 'excerpt'); 
  5. add_theme_support('title-tag'); 
  6. add_theme_support('automatic-feed-links'); 
  7. add_theme_support('html5', array('search-form')); 
  8. add_theme_support('custom-background', array('default-color' => 'efefef')); 
  9. add_theme_support('post-thumbnails'); 
  10. add_theme_support('custom-header', array('default-image' => '', 'default-text-color' => '1f1e1e', 'width' => 300, 'height' => 100, 'flex-width' => true, 'flex-height' => true)); 
  11. add_theme_support('customize-selective-refresh-widgets'); 
  12. add_image_size('content-single', 777, 437, true); 
  13. add_image_size('content-list', 260, 146, true); 
  14. add_image_size('cp-thumb-small', 120, 67, true); 
  15. register_nav_menus(array('main_nav' => esc_html__('Main Navigation', 'mh-newsdesk-lite')));