Hi Craig, I dropped a line to your support 3 days ago but I haven’t heard back.
Anyway for others that may have an issue like this I managed to find a fix that works across all browsers (except IE8 and older):
<script type="text/javascript">
jQuery(document).ready(function() {
if (jQuery(window).width() > 480) { // excludes mobile browsers
setTimeout(function(){
jQuery('#sb_instagram .sbi_photo_wrap').each(function () {
var jQuerycontainer = jQuery(this),
imgUrl = jQuerycontainer.find('img').prop('src');
if (imgUrl) {
jQuerycontainer
.css('backgroundImage', 'url(' + imgUrl + ')')
.addClass('compat-object-fit');
}
});
}, 5000); // for some reason a super long timeout is required
}
});
jQuery(window).resize(function() { //dynamic height transformation
var cw = jQuery('.sbi_photo_wrap.compat-object-fit').width();
jQuery('.sbi_photo_wrap.compat-object-fit').css({'height':cw+'px'});
});
</script>
With the following CSS:
#sb_instagram .sbi_photo_wrap.compat-object-fit {
background-size: cover;
background-position: center center;
#sb_instagram .sbi_photo_wrap.compat-object-fit img {
opacity: 0 !important;
}
Adapted from: https://medium.com/@primozcigler/neat-trick-for-css-object-fit-fallback-on-edge-and-other-browsers-afbc53bbb2c3#.y82keg7ey
Just changing the height with your jQuery suggestion won’t fix this as it will simply leave a stretched the image. The CSS object-fit:cover
property is required but unfortunately that is not supported by IE or Edge at all right now.