Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter belderiver

    (@belderiver)

    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');
    }
    Plugin Author kosinix

    (@kosinix)

    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');
    }
    Thread Starter belderiver

    (@belderiver)

    Thanks! The class is taking but unfortunately adding it didn’t solve my problem, so I will need to find another work-around.

    Plugin Author kosinix

    (@kosinix)

    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?

    Thread Starter belderiver

    (@belderiver)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image classes?’ is closed to new replies.