Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results for "no-conflict"
Search options not deleted
0 votes
3 answers
6k views

jQuery no conflict

I just want to once and for all get some clarity on jQuery within Wordpress as I can never remember from one project to the next how things should be done. The particular example I am talking about i …
Adrian's user avatar
  • 354
1 vote
Accepted

Contact form with Jquery and PHP don't work

From your code: $(function() { // Validate the contact form $('#contactform').validate({ WordPress loads jQuery in "no conflict" mode, meaning that the "$" symbol is not defined. Ch …
Otto's user avatar
  • 32.8k
5 votes
Accepted

Registering jQuery kills admin functions

jQuery is not defined This is because the Google CDN Jquery is not in no-conflict mode. Use the following to make sure the included WordPress no-conflict jquery is used in admin. if( !is_admin()){ …
Chris_O's user avatar
  • 20.6k
1 vote
Accepted

Change zurb foundation top bar style on.scroll in wordpress theme using jquery and css

You need to fully reference jQuery throughout your code. It should be... jQuery(window).on("scroll", function() { if(jQuery(window).scrollTop() > 50) { jQuery(".top-bar").addClass("active …
corradomatt's user avatar
0 votes
Accepted

Stylesheet is getting removed/deregistered automatically

The scripts and styles were not loading on admin pages because the No-Conflict Mode setting of Gravity Forms plugin was turned ON. As the setting is designed to do so: As described in Gravity Forms d …
rmbits's user avatar
  • 101
4 votes
Accepted

jQuery UI AutoComplete not working in wordpress?

WordPress requires no conflict wrappers for jQuery. (function($){ $("#to").autocomplete({ // code... }); })(jQuery); Or: jQuery(function(){ jQuery("#to").autocomplete({ …
Chris_O's user avatar
  • 20.6k
0 votes
Accepted

Isotope overlapping .items because of featured images - HELP!

Your page is loaded with jQuery errors (not using no-conflict), and additionally your isotope.js doesn't appear to be in no-conflict. This is why you're getting errors like $ is undefined. Once you f …
Howard E's user avatar
  • 743
2 votes

How to add custon UI jquery & Fancybox script to WP

If you are not already loading the jQuery UI .js and .css files in your theme/plugin you can add them via the wp_enqueue_script function: http://codex.wordpress.org/Function_Reference/wp_enqueue_scri …
Rachel Baker's user avatar
  • 1,946
1 vote
Accepted

Using jQuery .after inside loop

WordPress requires no-conflict for jQuery. Change this: var tiles = $('#article-tile:nth-child('+adLoc+')'); $(tiles).after(adTile); ...to this: var tiles = jQuery('#article-tile:nth-child('+adLo …
Chip Bennett's user avatar
  • 55.1k
4 votes
Accepted

My jQuery is enqueued properly. So why isn't it working?

jQuery scripts in WordPress require no-conflict wrappers. Instead of this: $(document).ready(function(){ $(#somefunction) ... }); Use this: jQuery(document).ready(function($) { // $() wi …
Chip Bennett's user avatar
  • 55.1k
1 vote

Javascript included but alert() function not working

WordPress loads jQuery in "No Conflict" mode. The $ alias does not work. Use jQuery.(document) or wrap your code like... (function($) { $(function() { // more code using $ as alias to jQuery …
s_ha_dum's user avatar
  • 65.5k
0 votes
Accepted

$ is not defined

WP loads jQuery in no conflict mode, so you can either swap $() for jQuery(), or wrap it in a function, e.g. (function($) { // Code using `$` ... })(jQuery);
Tom J Nowell's user avatar
  • 60.6k
1 vote
Accepted

Flexslider won't work with WordPress' jQuery | Dependencies

The problem was jquery conflict (error $ is not a function). All custom scripts should be running in no-conflict mode. I've used jQuery(...) instead of $().
rflw's user avatar
  • 166
7 votes

This jQuery snippet doesn't seem to work with Wordpress

Most likely, it's because you're using the dollar sign shortcut without putting it inside a no-conflict wrapper. http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrap …
Otto's user avatar
  • 32.8k
1 vote
Accepted

How is it possible that the function of the test page works, but it does not go live?

Try changing your script to this since you're not actually running a cross-browser request: <script> (function($) { $(document).ready(function() { var refreshId = setInterval(function() { …
murdaugh's user avatar
  • 321

1
2 3 4 5
9
15 30 50 per page