Changing WordPress URL breaks some jquery functions

There are PHP errors and notices in your scripts invalidating the JavaScript code: http://www.foxterrier.com/wp-content/themes/shape/smooths/getimages.php <b>Deprecated</b>: Function eregi() is deprecated in <b>/home/foxterrier/public_html/wp-content/themes/shape/smooths/getimages.php</b> on line <b>13</b><br /> smootharray[0]=”004.jpg”;<br /> Plus, you are loading jQuery too late. Read wp_enqueue_script() and how to handle dependencies (the third parameter).

Register google jquery gets overwritten by plugin

First: do not de-register core-bundled scripts in order to register some arbitrary version of those scripts. WordPress currently (at time of writing) comes bundled with jQuery 1.7.1. When WordPress 3.4 comes out next month, that version will be (IIRC) 1.8.x. Core, Themes, and other Plugins will all rightfully expect the core-bundled version of jQuery to … Read more

Remove swfobject.js in wp_head()

if you have unwanted javascript on your page, it usually comes from plugins. deactivate them, and see if the javascript is still there. if it still is, try updating wordpress, or switching to another theme. if not, activate the plugins one by one, and check which one is putting this script to your head. after … Read more

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_script No, add them via the enqueue scripts function. You need to wrap any inline scripts in a jQuery No Conflict wrapper. jQuery(document).ready(function($) { // do stuff // }); more on … Read more

Using JQuery to check for Rel Attribute of Image before Overriding It

/*———————————————————————————–*/ /* Add rel=”lightbox” to image links if the lightbox is enabled */ /*———————————————————————————–*/ if ( jQuery( ‘body’ ).hasClass( ‘has-lightbox’ ) && ! jQuery( ‘body’ ).hasClass( ‘portfolio-component’ ) ) { jQuery( ‘a[href$=”.jpg”], a[href$=”.jpeg”], a[href$=”.gif”], a[href$=”.png”]’ ).each( function () { var imageTitle=””; if ( jQuery( this ).next().hasClass( ‘wp-caption-text’ ) ) { imageTitle = jQuery( this ).next().text(); … Read more