mh_scripts

The MH Corporate lite mh scripts function.

Description

mh_scripts(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function mh_scripts() { 
  2. wp_enqueue_style('mh-google-fonts', "//fonts.googleapis.com/css?family=Open+Sans:300, 400, 400italic, 600, 700", array(), null); 
  3. wp_enqueue_style('mh-style', get_stylesheet_uri(), false, '1.0.0'); 
  4. wp_enqueue_script('scripts', get_template_directory_uri() . '/js/scripts.js', array('jquery')); 
  5. if (!is_admin()) { 
  6. if (is_singular() && comments_open() && (get_option('thread_comments') == 1)) 
  7. wp_enqueue_script('comment-reply');