Skip to content

Instantly share code, notes, and snippets.

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 feastdesignco/54128474021374785d2a028c5f379be3 to your computer and use it in GitHub Desktop.
Save feastdesignco/54128474021374785d2a028c5f379be3 to your computer and use it in GitHub Desktop.
add_action( 'wp_enqueue_scripts', 'cookd_reenqueue_js' );
/**
* Add this to the code snippets plugin
* Adds the javascript necessary for the FacetWP plugin to function, when using the Feast Plugin's Modern Mobile Menu
* We're dropping support for FacetWP and recommend a more modern setup using proper categories:
* https://feastdesignco.com/how-to-use-categories/
* https://feastdesignco.com/food-blog-recipe-index-pages-need-content/
* https://feastdesignco.com/how-to/configure-category-pages/
* https://feastdesignco.com/food-blog-site-structure/
* https://feastdesignco.com/why-recipe-indexes-suck/
*
*
*/
function cookd_reenqueue_js() {
wp_enqueue_script(
'cookd-general-2',
COOKD_URI . 'js/general.js',
array( 'jquery' ),
CHILD_THEME_VERSION,
true
);
}
/*
* You'll also want to hide the old theme menu by adding this to your "Additional CSS":
* .menu-toggle{display:none;}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment