Hi,
We are trying to add a custom badge to overlay on a product image using CSS code.
The code displays correctly in the preview but it gives us an error message when trying to save:
“Online store editor session can’t be published”.
This is the code we’re using which has been modified from an example we found on a community forum:
.product__media-item:first-child .product__modal-opener:after {
position: absolute;
content: “”;
background: transparent
no-repeat left/contain;
width: 100%;
height: 100%;
top: 1px;
left: 1px;
pointer-events: none;
}
In the first instance we would like to at least be able to apply the code to an individual item but ultimately we would prefer to be able to apply it to a template for a collection of items.
Any guidance would be greatly appreciated, thanks.