Created
June 26, 2012 19:31
-
-
Save fxbenard/2998279 to your computer and use it in GitHub Desktop.
my child functions.php
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
/* 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' ); | |
} |
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
<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