I’m replacing class name generated by one of the plugins with mine. I found this easier than fiddling with plugin on every upgrade. Anyways, in WP this simply doesn’t do anything! When I test it on non wp (same template xhtml) it works!
what could be the conflict? I have jquery included.
$(document).ready(function(){
$(".slideright img").removeClass("ngg-singlepic").addClass("cover");
//$(".ngg-singlepic").addClass("cover");
});
Try this:
The problem is that I think wordpress includes other libraries that conflict with the
$when used with jquery.To get around this you need to explicitly call
jQuerythe first time and if you pass$into the function then it will let you use the familiar$within the scope of the jquery function.Hope that helps.