Compatibility update with FitVids
-
Hello,
There is a JS conflict with this plugin and my themes due to their use of FitVids. The FitVids jQuery plugin wraps iframes with Youtube/Vimeo videos in a div element when making them responsive. This is conflicting with one of the Jquery selectors in this plugin.
The JS causing the errors is on lines 150, 153, 184, and 187 in view-content-popup.js. The selector used is as follows:
'.pupup-element.active .image-block .hg_iframe_class > iframe'
Because Fitvids wraps the iframe in a div element, the direct descendant selector does not apply, resulting in an error. It can modified like this to prevent the error:
'.pupup-element.active .image-block .hg_iframe_class iframe'
- The topic ‘Compatibility update with FitVids’ is closed to new replies.