Last active
November 26, 2019 16:26
-
-
Save feastdesignco/54128474021374785d2a028c5f379be3 to your computer and use it in GitHub Desktop.
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
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