Skip to content

Instantly share code, notes, and snippets.

@alexadark
Created March 9, 2014 14:17
Show Gist options
  • Save alexadark/9448416 to your computer and use it in GitHub Desktop.
Save alexadark/9448416 to your computer and use it in GitHub Desktop.
genesis DWB: enqueue scripts
add_action( 'wp_enqueue_scripts', 'enqueue_dev_style' );
/**
* Enqueue development css file which will be in uploads > themes > dynamik/gen root folder.
*/
function enqueue_dev_style()
{
wp_enqueue_script( 'dev', dynamik_get_stylesheet_location( 'url' ) . 'dev.js', array( 'jquery' ), CHILD_THEME_VERSION, true );
wp_enqueue_style( 'dev', dynamik_get_stylesheet_location( 'url' ) . 'dev.css', CHILD_THEME_VERSION, true );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment