Skip to content

Instantly share code, notes, and snippets.

@mpaccione
Created April 13, 2019 19:47
Show Gist options
  • Save mpaccione/854d1ced3f2330850449ff5df5d97b96 to your computer and use it in GitHub Desktop.
Save mpaccione/854d1ced3f2330850449ff5df5d97b96 to your computer and use it in GitHub Desktop.
Function.php
// ENQUEUE FILES
add_action('wp_enqueue_scripts', 'enqueue_func');
function enqueue_func() {
wp_register_style( 'styles', get_template_directory_uri().'/css/styles.css' );
wp_register_style( 'bootstrapAndStyles', get_template_directory_uri().'/css/assets.css' );
wp_enqueue_script( 'jquery' );
wp_register_script( 'archive-script', get_template_directory_uri().'/js/index.js', array("jquery"), null, true );
wp_enqueue_script( 'archive-script' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment