All things Shopify and commerce
Hello,
I have a custom page for "pet products". I would like to place a background image on the product description page, as shown in the image. I am attaching the image that I would like to add as a background.
Can someone help me?
Thanks in advance"
Hey there, upload your image to the Assets folder in your theme, and then insert it into your product's Liquid section like this. It should work. If it doesn't (since this depends on your theme's code), let me know, and I can help you further.
{%- style -%}
body {
background-image: url({{ 'your_image.jpg' | asset_img_url: 'original' }});
background-repeat: no-repeat;
background-size: cover;
}
{%- endstyle -%}
Hi!
I have a similar issue. I want to add a bkgd image to my product page. I'm using the Dawn theme, and I tried the code you provided but its not working.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024