• I’m using a Foundation Press theme and so far didn’t have any issues with plugin before. However, when I use a gallery as a shortcode, everything loads fine at first, but as I click on an image I get an error:
    “TypeError: s.get(0).style.removeAttribute(“filter”) is not a function.”

    As far as I understand, Envira uses a Fancybox in their plugin, and this issue is related to the Fancybox itself and not so much to the Envira plugin. While wondering the internet realm, I’ve found, that a Fancybox has updated and fixed this issue in their plugin https://github.com/nvidoni/fancybox/issues/2

    I’ve updated a Fancybox and Envira JS files myself by replacing .style.removeAttribute(‘filter’) with .style.removeProperty(‘filter’) as ‘filter is not an attribute, but a property and the issue was gone. It works with a jQuery v2.1.0, even though it’s not supported as claimed by Erica in this topic – https://ww.wp.xz.cn/support/topic/gallery-not-closing-and-typeerror-in-console/. I cannot downgrade to v1.x, so preferably it would be nice of you to update Fancybox in Envira plugin.

    Thank you in advance.

Viewing 1 replies (of 1 total)
  • Hi Aivaras 🙂

    I apologize for any trouble. We’ve not had any other reports of this issue so I’m not quite sure what version you were running compared to what has been edited.

    I’ll certainly let the developer know!

    If I can help with anything else, please let me know!

Viewing 1 replies (of 1 total)

The topic ‘FancyBox TypeError on opening an image’ is closed to new replies.