you should put that in the functions.js
file (create it if it does not exist), and make sure it is embedded in your wordpress site with wp_enqueue_script
in your functions.php
file in your theme.
Related Posts:
- Submit a form using jQuery
- JavaScript: filter() for Objects
- Force a default browser on my android phone using a simple html shortcut page
- Is jQuery $.browser Deprecated?
- jQuery date formatting
- $ versus jQuery
- How to center image in carousel
- jQuery dynamic selector
- How to pass $(this) properly in click jQuery function
- How to remove specific value from array using jQuery
- e.preventdefault(); not working
- How to empty input field with jQuery
- Using WordPress 3.5 Media Uploader in meta box?
- how to remove default jquery and add js in footer?
- Lightbox popup on WooCommerce add_to_cart action
- Check if jquery library exist
- Loading style.css and Jquery using HTTPS
- AJAX function returning -1
- Access Customizer’s DOM – jQuery
- jQuery AJAX form validation
- Media manager multiple selection
- Trying to get single posts to load on the front page via ajax
- How to include jQuery properly?
- How to load whole WordPress pages dynamically with AJAX/jQuery like this following website?
- Creating custom AJAX requests
- How to pass jQuery ajax URL value
- trigger(‘change’) not working
- how to get the comment ID in the front end when the REPLY button is clicked?
- Gravity list field override and adding javascript [closed]
- Change header image loaded by jQuery to use HTTPS
- Admin wp_ajax hook returning 0
- Adding a character counter to the excerpt metabox
- Need To Deregister Scripts Via Functions.Php
- Add a Fancybox automatically to post type “post” images
- enqueued script with jquery dependency not getting jquery
- Uncaught TypeError: jQuery is not a function
- WordPress customizer refresh screen after save
- Creating multiple enclosing shortcodes and fixing JS issues on click
- How can I check email exists via a jquery keyup()?
- Include jQuery plugin in WordPress
- Hide metabox dependant on page template chosen
- Trying to remove duplicate jquery scripts
- How to make an WordPress element sticky? [closed]
- I want to import my Json file into a custom made display-modal. How do i link my Json file?
- Validating a cloned/repeatable input (jQuery) [closed]
- How do I remove WordPress Custom Menus hover event and replace it with jQuery onclick?
- How to get all users by custom current user meta (array)?
- wp_dequeue_script not working in my plugin
- jQuery script isn’t posting to database
- Do I need to use jQuery for my template?
- Loading scripts on a single page plants the script in the footer
- Problem Implementing parallax in header of bp-default theme
- jQuery Show DIV and Remove Button [closed]
- timeouts (ERR_CONNECTION_RESET) on seemingly random files after upgrading to HTTPS
- Moving jQuery to footer from header
- jQuery plugin not loading
- Flexslider won’t work with WordPress’ jQuery | Dependencies
- My wordpress site is using local ip to point to jquery and other files, how to fix it?
- Search query with Ajax
- admin ajax php success returns 0
- Blur.js with WordPress – Enqueued, but server not finding file
- Load an action which is in an url with Jquery
- After inserting jquery weather code, my responsive menu is lost
- Tabbed content for WordPress sidebar
- Selecting multiple options onclick
- my example with ajax doesn’t work
- Best way to add some custom javascript using jquery to a child theme
- jQuery works in console but not when in a file
- Cannot remove error “Conflict with another plugin which overwrites jQuery” from wordpress site
- JQuery script working locally on desktop, not working on WordPress + Divi
- wp_deregister_script(‘jquery’) not working
- Loop through WordPress API response errors
- Can’t Target a Widget’s Elements using jQuery
- Add JQuery As Code Snippet
- How Do I change Markup of a link in WordPress
- How can publish my bootstrap created table ( huge amount of data) on my word-press theme?
- My website frequently redirect to a different advertisement URL
- Uncaught TypeError for wp-auth-check in wpCompressionTest on Posts/Pages
- Javascript when Customizer preview is ready/refreshed?
- JQuery toggle in Visual Composer
- jQuery plugin is loaded correctly, but does nothing
- WP Media Uploader modal conflicts with Bootstrap modal
- Javascript function to switch out images
- How to add a custiomized javascipt into a template
- WordPress version for this autocomplete jQuery code
- jQuery does not appear to be enqueued on static homepage
- Uncaught TypeError: Object [object Object] has no method ‘dialog’
- JQuery multiple toggle values
- How to pass more information though separate post keys via AJAX
- Adding jQuery timepicker to contact form
- How to make jQuery load AFTER plugin’s script?
- jQuery not working internal pages [duplicate]
- jQuery .change() Event Bubbling in WP Admin
- Contact Form 7 submission does not complete [closed]
- Unable to understand this jquery code [closed]
- Combo box populating a DIV using ajax/jquery
- Accessing Advanced Custom Fields with Repeater using jQuery instead of PHP
- How to Add jQuery cod in wordpress [duplicate]
- can’t make jQuery work (change image on time interval) [closed]
- Contact Form 7 – Submit Form not working After Ajax Request [closed]