Benoti
Yes, that was it! Seems app.js needs to be the last item loaded. Here is the final function with a couple of changes for anyone interested:
function foundation_scripts() {
wp_deregister_script('jquery');
wp_register_script('jquery', get_template_directory_uri().'/js/vendor/jquery.js', false);
wp_enqueue_script('jquery');
wp_enqueue_script('foundation-js', get_template_directory_uri().'/js/vendor/foundation.js', array('jquery'), false, true);
wp_enqueue_script('what-input', get_template_directory_uri().'/js/vendor/what-input.js', false, true);
wp_enqueue_script('app', get_template_directory_uri().'/js/app.js', array('jquery', 'foundation-js'), false, true); }
Related Posts:
- Drop Down menu expanded by default (on front page) [closed]
- Jquery dropdown menus working locally, but not in WordPress [duplicate]
- Any docs for wp_nav_menu’s “items_wrap” argument?
- Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?
- Bootstrap dropdown nav pills not working with wp_nav_menu()
- Show child pages by menu order using Superfish Dropdown menu?
- Bootstrap drop down menu with wp_nav_menu
- How do I give class to the dropdown sub-menu in the wp_nav_menu?
- How to Create a Custom WordPress Navigation Menu with the Code?
- Merge two separate WP menus into one in Mobile view
- Add class to menu ul with active child
- jQuery cookie not working properly in wordpress
- Create search form in menu as in Twenty Fourteen theme
- Hide menu item in certain condition
- How to add fixed position in menu class for Twenty Twelve theme?
- WordPress 3.5 dropdown menu
- Menu item with no page, but with dropdown
- Add css class to dropdown
- Hierarchical menu nesting problem with jQuery targetting
- Using a shortcode to create a dropdown menu from wp_nav_menu list items
- Menu in left side don’t appears with dropdown
- getting the current sub item out of total sub items in a given dropdown (custom walker)
- How to add html attributes to the “ul” html tag with “wp_nav_menu” function?
- How to remove dropdown from wp_nav_menu
- superfish.js seems it is not working properly after wordpress upgarde to 4.6.1
- styling wp_nav_menu – horizontal, sub-menu drop downs
- Adding numbers inside a span tag in nav menu [closed]
- Replace the slug of parent pages with # [closed]
- Adding toggle-able element after menu item
- WordPress Menu adds an unwanted slash before anchor
- wp_get_archives doesn’t take effect from css or html
- Twenty Fifteen: Change navigation menu behavior
- Adding archive years to my menu
- Nav menu classes ‘has-dropdown’ but no ‘active’
- Custom menu – different submenu for first menu item
- WordPress Menus – How to add inline styles to UL menus
- dropdown menu, with walker
- Dropdown primary navigation menu not working
- Is there any way to change the CSS class applied to 2nd level sub menu ul’s?
- WP Menu Rollover Nav Item and Effect DIV Elsewhere
- Menu item that hides when you click the previous submenu
- Add class to sub-menu from unrelated element
- Cannot collapse a responsive menu in WordPress
- Add “onclick” option to header menu item
- WordPress menu issue – if there are child links partents won’t click
- calling JS to custom menu design
- how do you create this customize menu using wp_nav_menu function?
- Mobile menu not working – jQuery error?
- How can I create this menu with wp_nav_menu()?
- Walker or wp_get_nav_menu_items VS jQuery
- show a hidden ul if li is active
- Responsive Dropdown Menu
- Links in new menu don’t work
- Reveal hidden submenus on page load – Twenty Fifteen theme
- No indication of menu
- jQuery not working when used with wordpress menu
- wp_dropdown_nav function to list menu items
- How to make a drop down menu with categories
- How to add an tag when a menu item is a dropdown(or has a sub-menu) [duplicate]
- How to add posts with thumbnails to my dropdown menu?
- Should I custom code drop down menus or use a wordpress plugin?
- Keeping my Sub Menu open when hovering on its list items
- Is it possible to animate the Twenty Eleven menu? [closed]
- Add a page to a subscribers account
- What is the best way to incorporate responsive dropdown navigation menu into custom theme?
- Menu items do not “open” when mouse hover over them?
- Icon not shown in Dropdown menus in Twenty Seventeen Theme
- Unregister Nav Menu from Child-Theme
- Keeping parent menu items active in child pages
- Pass a parameter to a menu walker
- Menu is not visible in appearance
- Customize the menu by adding items
- How to insert custom code into wp_nav_menu structure?
- getting parent page id when using custom menu.
- Change name & menu_name for Profile in the default menu, w/o altering core files?
- wp-menu ‘automatically add custom taxonomy terms’ like it does for pages? [closed]
- Put class on instead li
- Tiles as a navigation
- Default menu editor with automatic page list
- How to get a multidimensional array of my menu?
- How to get the name of the homepage’s menu?
- How to get submenu of admin menu?
- wp_nav_menu without menu or theme_location specified
- What is the $menu parameter used of in wp_nav_menu()?
- Keep source page URL parameters on custom link menu item
- Is it possible to get_the_post_thumbnail (Featured Image) inside a sprintf function?
- Custom menu is rendered in all menus
- Making my main menu a hamburger menu on all platforms
- menu change after theme change
- menu mobile show up even i in desktop mode in Newspaper Theme
- WordPress fountainpress header is covering top bar
- Cannot add home page url to menu with #
- Adding icons next to categories in wp_nav_menu
- Add dynamic content block to nav section generated by custom walker
- Customizing label/title output of admin nav_menu selecter
- Extend Individual Menu on Page Function to individual Submenue on Page Function?
- How can I modify wp_nav_menu with walker?
- menu items outside of blog
- Change sub-menu css class
- Submenu items not working anymore