Tried to do it through my custom JS file, it broke more than it fixed. Here’s what I tried:
jQuery(document).ready(function ($) {
$('.cycloneslider-slide').find('img').setAttr('class','cyclone-slider-image');
}
There is no setAttr function in jQuery.
You can target the image with this code:
jQuery(document).ready(function ($) {
$('.cycloneslider-slide').find('img').attr('class','cyclone-slider-image');
}
or much shorter
jQuery(document).ready(function ($) {
$('.cycloneslider-slide').find('img').addClass('cyclone-slider-image');
}
Thanks! The class is taking but unfortunately adding it didn’t solve my problem, so I will need to find another work-around.
I’m using a plugin to generate responsive images for me and I’m trying to tell it to ignore the images loaded in by cyclone slider.
Im curious. How do you specify the images to ignore?
You can set up a class exemption list… It just isn’t working like I’d hoped it would for some reason. =P Anyway I think I’ll be fighting with the other plugin rather than this one.