Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Last active May 25, 2018 12:39
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 joshfeck/2883e24e43d916f65c3cbcea91dcfc4a to your computer and use it in GitHub Desktop.
Save joshfeck/2883e24e43d916f65c3cbcea91dcfc4a to your computer and use it in GitHub Desktop.
Load Espresso Grid Template's assets on every front-end page of the website.
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_action( 'wp_enqueue_scripts', 'my_add_ee_grid_assets' );
function my_add_ee_grid_assets() {
wp_enqueue_style(
'espresso_grid_template',
EE_GRID_TEMPLATE_URL . 'css' . DS . 'espresso_grid_template.css'
);
wp_enqueue_script(
'espresso_grid_template',
EE_GRID_TEMPLATE_URL . 'scripts' . DS . 'espresso_grid_template.js',
array('jquery'),
EE_GRID_TEMPLATE_VERSION,
true
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment