Hide caption from instagram in popup, but still show product info.
<script type="text/javascript">
// when gallery is ready
document.addEventListener('galleryReady:covetPics', function(e) {
// prepare CSS styles to inject
// this CSS hides sidebar in Covet.pics popup
const stylesPopup = document.createElement( 'style' )
stylesPopup.innerHTML = `
.caption, .source { display: none; }
`
// get Covet gallery elements where you want to inject (for eg. covet-pics-popup)
const popup = document.querySelector("covet-pics-popup");
// inject CSS styles
popup.shadowRoot.appendChild(stylesPopup);
});
</script>