Hide sidebar and show only image in popup
<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 = `
.popup .popup-body {
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>