Hi, friends! I need to use two separate banners on top of the home page for desktop and mobile users. I’ve uploaded two different files for this purpose and created the following code for the “Custom Liquid” section, which I will add to the website.
However, there is some problem - the pictures don’t show up when I replace the URLs with the correct ones. What’s the problem?
Moreover, how should the code look like to make the images optimised for both platforms?
Code:
.banner-image { background-image: url([https://cdn.shopify.com/s/files](https://cdn.shopify.com/s/files/1/0692/3662/1594/files/Wise.gif?v=1675599616)); height: 400px; width: 100%; background-size: cover; background-position: center; } @media (max-width: 767px) { .banner-image { background-image: url([https://cdn.shopify.com/s/files](https://cdn.shopify.com/s/files/1/{your_store_id}/files/tech-2)); } }