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
- Frontend Enqueued Files in the Backend
- How to remove style and js from theme and add your own style and js where shortcode is used?
- React JSX in WordPress Plugin Development
- How to get current post user id
- Events Made Easy Plugin – Duplicate Title Tags
- Difficulty loading jQuery with wp_enqueue_script
- jQuery not available to other scripts
- Different UI in WordPress
- Notepad sticky plugin
- What is the correct way to update both WP/plugins/themes without breaking the site?
- Redux Framework has an embedded demo. Click here to activate the sample config file
- scrolltop always 0, can’t trigger script
- Use wp_enqueue_scripts from included php file
- Bootstrap Drop Down menu is not working
- Not getting author rank when using return
- How to Display a Plugin function (content) on frontpage using index.php
- The problem with WordPress Importer
- Loading jQuery UI in the head
- How can I implement an Add to Collection function on my Image Gallery to be downloaded later?
- Form isn’t inserting data into database with ajax plugin
- Why does my functions.php cause white-screen and media-library issues?
- How to make a slideshow shortcode based on the WordPress gallery shortcode? [closed]
- how to give a user a role?
- Best approach to fetch data from wp options to js file or php file
- custom changes removed after plugin update
- Adding a slider captcha to the comment system
- issues with wp_enqueue_script in my plugin
- How to put JQuery/Ajax inside shortcode?
- Making a plugin only available on the front-end for the logged in super admin
- Plugin for a text modal box [closed]
- Can someone please tell me what is wrong with my plugin?
- Error with Image Slide plug-in/ s3slider in WP
- All of my custom posttypes are 404’ing
- Is there a way to set the default active tab on Post UI Tab pluggin?
- looking for navigation plugin (accordion) [closed]
- wordpress site | All-in-one-cufon IE Issue
- Enqueue WordPress plugin scripts below all other JS
- Display post lists in 2nd paragraph
- WordPress function not being called from jQuery method
- Change upload folder for a CPT
- Need to change url paramenter of share product pintrest [closed]
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- Ajax contact form widget plugin data not insert in database
- Time consuming callbacks in customizer
- wp_get_post_terms is difference obj model than the one in rest api response
- how to add a button next to the wordpress view button?
- Modifying a .js Function for Print [QZ Tray, WooCommerce POS]
- Classified ad website : which solutions to use? [closed]
- How to hide CSS by default and show on button press
- Uncaught TypeError: jQuery(…).flipster is not a function in wordpress
- Best place for short bio,image and button [closed]
- What are the specifics of WordPress development I need to know? [closed]
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- WordPress shows error related to allow_url_fopen
- How to create a code editor for my plugin .?
- How to show only next post pagination link using wp_link_pages()
- Finding the URL to be used to check if plugin is installed with a theme
- Redux Framework: Page freezes on typing in Editor
- How can I inject options into an select tag inside the widget form?
- jquery tinymce and bundled wp plugins
- Display wordpress post’s in popup?
- Js file is not adding using this code in functions.php
- wp_footer hook only working on homepage not in other pages
- How to prevent plugins from loading jQuery
- Using color picker in plugin, does input attribute order matter?
- JQuery plugin that works with Google 1.10.2 and not with WordPress 1.10.2
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- Loading a purchased jquery plugin in a wordpress theme
- Using window.onload with Ubermenu
- Post Comments with Ajax in WordPress
- jQuery | JJ Carousel Plugin – Can’t set speed [closed]
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Integrating jQuery Datatables with Editor into wordpress admin
- Plugin can not display in my custom theme
- how to insert data in wordpress table usnig jquery ajax
- Stop WordPress processing Javascript as text
- Jquery plugin not working on single pages
- How to use get_template part in the plugin?
- Redirect to another page using contact form 7? [closed]
- Overriding Parent Theme… will cause plugins failure?
- this jQuery function works perfect in static html page but not on wordpress
- How to include this jQuery File in wordpress?
- Is there a loading priority for login_enqueue_scripts?
- WordPress premium theme development [duplicate]