Last active
May 25, 2018 12:39
-
-
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.
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 | |
//* 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