Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yeadh/f21808227597c9418f91cf464d9f1d20 to your computer and use it in GitHub Desktop.
Save Yeadh/f21808227597c9418f91cf464d9f1d20 to your computer and use it in GitHub Desktop.
<?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