habibjutt
7/26/2016 - 4:01 PM

adding styles and scripts in wordpress.php

function ontario_child_scripts() {
	if ( ! is_admin() && ! in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ) ) {
		wp_enqueue_style( 'nouislider-css', get_template_directory_uri() . 'css/nouislider.min.css');
	}
        wp_enqueue_script('nouislider-js', get_stylesheet_directory_uri() . '/js/nouislider.min.js', array('jquery'));
}
add_action('wp_enqueue_scripts', 'ontario_child_scripts');