Created
December 15, 2016 22:11
-
-
Save Yeadh/f21808227597c9418f91cf464d9f1d20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function strict_scripts_styles() { | |
/** --------------------------Javascript------------------------------- */ | |
/* Add main.js */ | |
wp_enqueue_script('popup', get_template_directory_uri() . '/assets/js/components/popup.js', array( 'jquery' ), '1.0', true); | |
wp_enqueue_script('map', get_template_directory_uri() . '/assets/js/components/map.js', array( 'jquery' ), '1.0', true); | |
wp_enqueue_script('nav', get_template_directory_uri() . '/assets/js/components/nav.js', array( 'jquery' ), '1.0', true); | |
wp_enqueue_script('main', get_template_directory_uri() . '/assets/js/main.js', array( 'jquery' ), '1.0', true); | |
/*------------------------------------- Stylesheet ---------------------------------------*/ | |
wp_register_style('arial', get_template_directory_uri() . '/assets/css/examples/fonts/arial.css', array(), '1.0.0'); | |
wp_enqueue_style('arial'); | |
/** --------------------------custom------------------------------- */ | |
/* Loads our main stylesheet. */ | |
wp_enqueue_style( 'strict-style', get_stylesheet_uri(), array( 'style' )); | |
} | |
add_action( 'wp_enqueue_scripts', 'strict_scripts_styles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment