How do I use liquid code to resize a payment banner image?

Hello, I want to upload a safe payment banner image with a size of 1159x56px using liquid code. I tried, but it doesn’t work; it’s too small on desktop and too big on the phone. Maybe someone can help?

Could you provide your store URL? Thanks!

You may need to use CSS code to adjust the image based on screen size. You can try something like this in a custom liquid section, replace image link with your own:


Results:
Desktop:

Mobile:

Hope that is helpful to you!
@biznazz101

Hi @Amandalman,
This is Richard from PageFly - Shopify Page Builder App.

You can follow me:


Best regards,
Richard | PageFly

Really thanks! it works