• Resolved michfm

    (@michfm)


    Hi,

    We have a plugin installed in our site that has conflict with the carousel slider plugin. There were some images that load and some were not. Is it possible to add a class to the images? Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello @michfm,

    Please send your website link.

    Thanks,

    Thread Starter michfm

    (@michfm)

    Hi @anoopranawat

    Please check this link.

    Thank you!

    – mich

    • This reply was modified 5 years, 11 months ago by michfm.
    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello,

    Please check your given site url its not currect please send again.

    Thanks

    Thread Starter michfm

    (@michfm)

    Sorry about that, @anoopranawat. Here’s the link: please click here.

    Thank you!

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello,

    I have checked the issue its lazy load issue please disable it.

    Thanks

    Thread Starter michfm

    (@michfm)

    Thanks, @anoopranawat. Is there a way on how we can add a class to the images without disabling the lazy load plugin so the slider would still work? Is it possible to do that with your plugin?

    – Mich

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello @michfm

    Why you want to add a class to the images.

    This is an issue because of the lazy load
    when slider initialization complete then images are load so slider not works perfectly that is the main issue.

    Thread Starter michfm

    (@michfm)

    Hi @anoopranawat

    The reason why we want to add a class for the images is that we can target the carousel images to be skipped by the Lazy Loading plugin. Thanks.

    – michfm

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello,

    Sorry for the inconvenience

    The plugin has no functionality to add custom class but you can customize the plugin as per your need but remember your changes will lose when the plugin will update

    You can add your custom class by editing this file line no 56 meta-slider-and-carousel-with-lightbox/includes/shortcode/wp-igsp-meta-gallery-carousel.php

    Find <?php echo wp_get_attachment_link($image, 'large');

    and replace with <?php echo wp_get_attachment_link($image, 'large your-custom-class'); now your custom class is your-custom-class

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Add class to images’ is closed to new replies.