Skip to content

Instantly share code, notes, and snippets.

@fxbenard
Created June 26, 2012 19:31
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 fxbenard/2998279 to your computer and use it in GitHub Desktop.
Save fxbenard/2998279 to your computer and use it in GitHub Desktop.
my child functions.php
/* Do theme setup on the 'after_setup_theme' hook. */
add_action( 'after_setup_theme', 'cascade_child_theme_setup', 11 );
/**
* Theme setup function. This function adds support for theme features and defines the default theme
* actions and filters.
*
* @since 0.1.0
*/
function cascade_child_theme_setup() {
/* Get action/filter hook prefix. */
$prefix = hybrid_get_prefix();
/* Load resources into the theme. */
add_action( 'wp_enqueue_scripts', 'cascade_fx_resources' );
/**
* Loads the theme scripts.
*
* @since 0.1
*/
function cascade_fx_resources() {
wp_register_script( 'custom', trailingslashit ( CHILD_THEME_URI ) . 'js/custom-js.js', array('jquery') );
wp_register_script ( 'quicksand', trailingslashit ( CHILD_THEME_URI ). 'js/jquery.quicksand.js', array( 'jquery' ));
wp_enqueue_script( 'custom' );
wp_enqueue_script( 'quicksand' );
}
<script src="http://localhost/Test-dataCHILD_THEME_URI//js/custom-js.js?ver=3.4" type="text/javascript">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment