Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.