Try changing the first line of your custom JS file.
jQuery(document).ready(function($) {
jQuery operated within WordPress should be run in compatibility mode. That line allows this to happen, as per point #5 here.
Related Posts:
- force enqueue script to be first in order of prominence
- Get info (url) from already enqueued styles
- Check javascript file Proper way in functions.php
- How do I make sure a plugin loads a script after jQuery
- Calling JavaScript file with Custom Plugin
- Problem in loading javascript in footer
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- jQuery for custom plugin not working with Divi theme
- Create shortcode to echo javascript
- Jquery NoConflict Problem
- Enqueue script: link not working in page source
- force jQuery to load in the head
- How to install jquery dotdotdot plugin for WordPress?
- Javascript as Jquery Function Call?
- Integrating WordPress Content into a jQuery Slider
- Ajax button “Load more” is not loading correct language version posts for logged out users
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- Hide wordpress plugins from list
- enqueue script only if it is not already enqueue
- How can I dequeue a Plugin Stylesheet?
- jQuery plugin only in one page/post
- How to make my plugin theme-independent?
- Add jQuery to WordPress page
- Add custom buttons with custom actions in Edit Post screen in WordPress?
- How do I use WordPress PHP functions in my Javascript code?
- Disable wordpress from including jQuery in the head section
- What’s the point of using WordPress’s built in admin-ajax.php?
- Admin-ajax.php is dying “0” without processing function
- Workflow and best practice for documentation [closed]
- Plugin jQuery version VS Theme jQuery version: search for best practice
- how to include a simple jquery file into a wordpress plugin
- How does WP handle multiple matching rewrite rules?
- React JSX in WordPress Plugin Development
- Difficulty loading jQuery with wp_enqueue_script
- Not getting author rank when using return
- How can I implement an Add to Collection function on my Image Gallery to be downloaded later?
- custom changes removed after plugin update
- issues with wp_enqueue_script in my plugin
- Is there a way to set the default active tab on Post UI Tab pluggin?
- Need to change url paramenter of share product pintrest [closed]
- Classified ad website : which solutions to use? [closed]
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Finding the URL to be used to check if plugin is installed with a theme
- How to prevent plugins from loading jQuery
- Loading a purchased jquery plugin in a wordpress theme
- Stop WordPress processing Javascript as text
- Deactivate JS Script in Plugin Shortcode
- Remove / overwrite some functions in buddypress.js
- Customizing Titles on the Fly with Code
- How to best create a jQuery Slider to display a native wordpress gallery?
- Add type to enqueued script inside plugin
- How to use the CSS of the WordPress core in the development of my administration page?
- Custom plugin – load enqueue only for this plugin
- Managing wordpress Themes & plugins for multisite
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- Add user meta after a user has registered and logged In [closed]
- Custom meta box with jQuery.sortable custom post type list
- FancyBox JS stopped working on multiple sites. Custom plugin responsible. Urgent help needed
- jQuery(‘#news-ticker’).cycle is not a function
- Javascript from Easy-Fancybox place into footer
- WordPress plugin isn’t loading completely
- jQuery slider widget similar to cnet.com
- FacetWP breaks jQuery events
- How to get authors who have added the post in the specific custom post type
- woocommerce remove coupon link does not work
- need to find duplicated meta value in custom filed and view the posts that have the same value
- How to override any plugin file in the child theme
- submit two file input fields in the same form
- WP Ajax DB issues
- jQuery Ajax not loading page with ACF fields
- Changing the CSS with a plugin
- How to get a post views count using ‘WordPress popular posts’ plugin
- Website always load twice on start
- Using Shortcode Result In Custom HTML Block (Using Google Sheet JQuery Result As NumScroller data-max)
- How to use plugin’s shortcode in custom design? [closed]
- Uncaught TypeError: Cannot read property ‘cycle’ of undefined
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Overwriting Plugin’s Ajax callback function from theme
- Product catalogue in WordPress
- Can’t find variable is_single in my jQuery plugin
- Specific plugin script not working on subdomain
- How to Add Jquery FullCalendar in wp plugin in admin
- Showing ads in the specific category and its sub-categories
- Plugin program: JQuery not working in this plugin
- Ajax, jQuery and WordPress
- Hyperlink to execute PHP
- How to get site homepage from plugin?
- jQuery loaded in wrong order for non-admin page views only
- Plugins enqueuing jquery in head
- Trying to override/intercept a PhotoMosaic gallery link in WordPress using jQuery
- PHP and Jquery pass value from form. Update function on DataBase
- Plugin use of ajax/jquery depending dropdown
- Load css classes after using ajax calls
- How to resolve these findings from security audit
- How to add image for custom taxonomy
- Change page content based on dropdown selection
- How to code a wordpress page properly? Dashboard or unique Theme files or alternative?
- how to make wordpress remember my choice
- Meta box not displaying on the plugin page
- Getting error when accessing Customizer Page