You need to use it with jQuery like this:
wp_enqueue_script( 'pushy', '//cdnjs.cloudflare.com/ajax/libs/pushy/1.1.0/js/pushy.min.js', array( 'jquery' ) );
Related Posts:
- Apply jquery script to only woocommerce product pages and categories
- Enqueuing Script in functions.php vs on the page
- jquery won’t load in footer
- Replace menu links with # and add name to its li
- Scripts not appending to element in AJAX call – why?
- How to search using ajax for exact phrase or words in an input field?
- how to en-queue jQuery to load before the tag
- I can’t enqueue my scripts – They literally aren’t being added to my site
- Run a jquery script on on a certain template page
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- How to load jQuery in TOP of wp_footer?
- Include Jquery libraries in wordpress theme?
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Creating multiple category drop down
- How to setup a popup registeration page in wordpress with function.php
- wp_set_object_term via js btn frontend
- How To Display Author Popup on Entry Meta (Genesis Framework)?
- Multiple Notifications SetInterval
- Automatic add space if user enters number(any digit)
- Why are some custom javascript files working but some are not
- WordPress Javascript Widget jQuery Dependency Issue
- How do I get my nav menu to show sub pages?
- Animated Accordion [closed]
- iOS and ajaxComplete
- How to change the order of Jquery in the footer of my theme?
- Including a specific Javascript Script in a template. Is my code correct?
- Jquery implementation not working on page reload
- Overwriting the menu break points of twentysixteen in child theme
- How do I remove the date and category form my portfolio pages
- Attempt to change jQuery version caused White Screen of Death
- PHP mixed with some JS code to update WordPress theme settings
- Load jquery only for certain pages in the backend
- Change CSS for logged in users
- Always the Latest google jQuery instead of default WordPress jQuery
- Add a jQuery Function
- jQuery does not work
- using jQuery on only one page
- Javascript function not working when placed in Text Block
- Can’t call Javascript function – scope?
- Changing parent element’s class or style
- I have problems with loading javascripts
- Enqueuing latest version of jQuery into a child theme returns a blank screen
- echo custom fields with AJAX
- Adding javascript to functions.php causes problems with my template
- Dequeue script to prevent javascript event conflict on wordpress child theme
- Adding jQuery datepicker to Custom Post Type Metabox [closed]
- In jquery use php variable to execute an enqueued jquery file
- javascript and css links not working on sever
- Add php code to wp_print_scripts?
- How can i unload effect.min.js file?
- wp_enqueue_script | Help me figure out what is causing jQuery is not defined
- Loading two different AJAX requests on two different pages
- Enable right click on WordPress site
- Why i can’t get custom fields value or post ID via Ajax?
- The correct way to add a JavaScript in the functions.php [closed]
- Where is this JQuery coming from?
- Javascript not loading after the document ready
- Theme JS is available but theme CSS isn’t
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Need help with customalert that it would read on a normal page, but not in WordPress
- Passing Jquery value to WordPress function
- WordPress can’t get jquery/unslider to work
- Add loggedout class on body using a function or JS
- Are innerHTML elements visible to jQuery functions?
- Linking Javascript in functions.php file
- Dequeue scripts in IE7 only using functions.php
- get content from page through AJAX
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- colorbox not loading in
- Call javascript functions from each page
- Custom attributes to javascript tags
- How to add php within jquery
- Help with IF has focus then… statment
- wp_enqueue_script() not working
- Get URLs for AJAX Filter Checkboxes WordPress
- How to change text color depending on the number value (Using javascript)
- Add custom taxonomy using JS in post editor
- Display Script in Header When URL Variable Present
- Running javascript without hooking wp_head
- Populate Product Regular Price with a calculated ACF Field Value
- Hide ‘add to cart’ when certain value in dropdown is selected
- Ajax Form Issues using Lightsail (AWS)
- What is the earliest Hook a Script can use?
- WordPress does not load jQuery
- post value to function with Ajax and jQuery
- Update $wpdb query with AJAX
- Ajax in plugin fails – but only on one blog – no idea why
- How to add javascript code into Divi child theme?
- Changing the default view of “The Events Calendar” for mobile
- Images with overlay
- How to use `foreach()` in ajax call
- How to call a function from functions.php with ajax?
- Help wiht adding fullcalendar.io to a WordPress page
- WordPress load javascript file if something… (after the page is loaded)
- How do i create a search option for pdf’s only
- WordPress Ajaxifying not working properly
- Execute jQuery with custom event listener after successfully add an item to the cart
- Load scripts into an AJAX div
- Load scripts into an AJAX div
- Find the method which AJAX GET calls