mh_magazine_lite_setup

The MH Magazine lite mh magazine lite setup function.

Description

mh_magazine_lite_setup(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function mh_magazine_lite_setup() { 
  2. load_theme_textdomain('mh-magazine-lite', get_template_directory() . '/languages'); 
  3. add_filter('use_default_gallery_style', '__return_false'); 
  4. add_theme_support('title-tag'); 
  5. add_theme_support('automatic-feed-links'); 
  6. add_theme_support('html5', array('comment-list', 'comment-form', 'search-form', 'gallery', 'caption')); 
  7. add_theme_support('post-thumbnails'); 
  8. add_theme_support('custom-background', array('default-color' => 'f7f7f7')); 
  9. add_theme_support('custom-header', array('default-image' => '', 'default-text-color' => '000', 'width' => 1080, 'height' => 250, 'flex-width' => true, 'flex-height' => true)); 
  10. add_theme_support('custom-logo', array('width' => 300, 'height' => 100, 'flex-width' => true, 'flex-height' => true)); 
  11. add_theme_support('customize-selective-refresh-widgets'); 
  12. register_nav_menu('main_nav', esc_html__('Main Navigation', 'mh-magazine-lite')); 
  13. add_editor_style();