jQuery no conflict and WordPress
Posted: May 15, 2011 Filed under: Word Press Tutorials Leave a comment »jQuery.noConflict();
(function($) {
$(document).ready(function() {
//code here that depends on the document being fully loaded
});
})(jQuery);
example:
// found in header
jQuery.noConflict();
(function($) {
$(document).ready(function() {
$(function() {
$(‘#gallery a’).lightBox();
}); });
})(jQuery);
//end of header
source: http://stackoverflow.com/questions/1391950/how-to-use-jquery-non-conflict-properly
Advertisement