Thread Starter
ow33
(@ow33)
thanks that worked!
but now for some reason its ignoring the height? when i inspect the div, it is adding padding-top: 59.74025974025974% !important; on .fluid-width-video-wrapper class.
i checked the fitvids.js and found this:
var fwvwrap = document.createElement('div');
fwvwrap.className = 'fluid-width-video-wrapper';
try {
$this.wrap(fwvwrap).parent('.fluid-width-video-wrapper').attr('style', 'padding-top: ' + (aspectRatio * 100) + "% !important;");
$this.removeAttr('height').removeAttr('width');
}
catch (wraperr) {
}
i removed :
$this.wrap(fwvwrap).parent('.fluid-width-video-wrapper').attr('style', 'padding-top: ' + (aspectRatio * 100) + "% !important;");
and from fitvids.min.js i removed:
a.wrap(e).parent(".fluid-width-video-wrapper").attr("style","padding-top: "+100*c+"% !important;")
but its still adding the padding. i did cleared the cache though.
can you please point out why this keeps adding the padding?