Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save clare485/5554994 to your computer and use it in GitHub Desktop.
Save clare485/5554994 to your computer and use it in GitHub Desktop.
<?php
/* Remove Parent Theme Foundation Files */
wp_deregister_style("foundation-app");
wp_deregister_script("foundation-reveal");
wp_deregister_script("foundation-orbit");
wp_deregister_script("foundation-custom-forms");
wp_deregister_script("foundation-placeholder");
wp_deregister_script("foundation-tooltips");
wp_deregister_script("foundation-app");
wp_deregister_script("foundation-off-canvas");
/* Replace Foundation Files */
function levenRegisterStyles() {
wp_register_style('foundation-app', get_stylesheet_directory_uri() . '/stylesheets/app.css', array(), '3.0', 'all');
}
add_action('wp_enqueue_scripts', 'levenRegisterStyles');
function levenRegisterScripts() {
wp_register_script('foundation-app', get_stylesheet_directory_uri() . '/javascripts/foundation/app.js');
wp_enqueue_script('foundation-app', 'jQuery', '1.1', true);
}
add_action('wp_enqueue_scripts', 'levenRegisterScripts');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment