I have some css code that works just fine, but now im trying to make the user choose the image, here is my liquid code that is meant for the image to show on the announcement bar.
{% if block.settings.image != blank %}
<style>
@media screen and (min-width: 1000px) {
.announcement-bar {
background-image: url({{ block.settings.image | image_url: '300x' }});
background-size: 15% auto;
background-repeat: no-repeat;
background-position: calc(60%) center;
padding-right: calc(15%);
}
}
</style>
{% endif %}