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
- Where and how to put inline js in pages
- ajax live search for post title
- Run Product Filter Javascript On Page Template
- jQuery plugin function is not a function
- Add confirmation popup on “Move to Trash”
- Display a function using AJAX
- Click loads template via ajax
- How to properly add NPM packages and integrate them in WordPress?
- Woocommerce checkout field maxlength, make input number field only (postcode)
- Get Current User info using wp_localize_script, in functions.php
- How to get the post_name when in preview?
- How to load jQuery in the footer – nothing works for me
- Not sure if enqueuing js scripts properly
- Wp_query function to search from product_title ‘OR’ product tags name
- Allow Post Author to be 0 on Update
- Trouble with adding a wp_enqueue_script on wordpress
- WP Ajax Function Always Returning undefined
- call of javascript function to external url always blocked by cors
- dynamic dependent select dropdown
- Ajax load more button for comments wordpress
- Including a specific Javascript Script in a template. Is my code correct?
- Overwriting the menu break points of twentysixteen in child theme
- How do I remove the date and category form my portfolio pages
- 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
- 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
- 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?
- Where is this JQuery coming from?
- Javascript not loading after the document ready
- 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?
- Call javascript functions from each page
- Help with IF has focus then… statment
- Add custom taxonomy using JS in post editor
- 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
- What is the earliest Hook a Script can use?
- post value to function with Ajax and jQuery
- Update $wpdb query with AJAX
- Changing the default view of “The Events Calendar” for mobile
- Images with overlay
- How to use `foreach()` in ajax call
- Help wiht adding fullcalendar.io to a WordPress page
- WordPress load javascript file if something… (after the page is loaded)
- WordPress Ajaxifying not working properly
- Load scripts into an AJAX div
- Load scripts into an AJAX div
- Get child-pages slugs of current page into js-file
- True parameter but jquery register in header and not in the footer with wp_register_script
- Some code is added automatically to my site’s header – what is it?
- Javascript and Stylesheet in child page
- WordPress Jquery+scripts enqueue issue
- Search and Replace Script Loader in Head Only Works in Footer
- Moving CDN jQuery to footer does not work?
- Adding a jQuery rotator function
- custom post with loading script per single post
- How to use different jquery function of idangero swiper dependant on page template?
- Having problems loading Jquery in functions.php
- Why wp_ajax hooks doesn’t work?
- How to hide .js files on wordpress website using php or wp plugins or any? [closed]
- Get all users from role and add to dropdown (select) – wordpress, javascript
- Can’t find function which is called in a wordpress theme
- WordPress enque the same script causes the setInterval not to work