• Resolved truxton

    (@truxton)


    Hello,

    I want to let svg flies excluded in this plugin, since the fancybox effect is not good. (by the way, good example:, but this is off-topic)
    Now to I only want to exclude svg files in this plugin. Is there any method to do this? I tried to modify jquery.fancybox.min.js, but some codes are obfuscated and I cannot simply modify it.
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author arisoft

    (@arisoft)

    Hello

    Do you want to modify control buttons? It is better to modify them via custom CSS files. If change JS file, it will be replaced with each new plugin version.

    • This reply was modified 4 years, 6 months ago by arisoft.
    Thread Starter truxton

    (@truxton)

    Hello,
    I don’t know how to do this using CSS code. The fancybox plugin (more specifically, fancybox.min.js) detects all the png, jpg, svg, pdf… files in the page and I just want the plugin to ignore svg files. In this plugin’s setting page, there are settings for youtube videos, pdf files… and I want to exclude svg files as well.
    https://imgur.com/a/NCcdJ5j

    • This reply was modified 4 years, 6 months ago by truxton.
    Plugin Author arisoft

    (@arisoft)

    Open “ARI Fancy Lightbox -> Settings -> Advanced” page and populate “Custom JS code” parameter with the following code:

    var isImageLinkOriginal = ARI_FANCYBOX_HELPER.isImageLink;
    ARI_FANCYBOX_HELPER.isImageLink = function(link) {
      return !!link && !link.match(/\.svg((\?|#).*)?$/i) && isImageLinkOriginal(link);
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to Exclude SVG’ is closed to new replies.