Shopify themes, liquid, logos, and UX
I need to change the shopify no image photo to one of my own.
Hello DStanko,
Refer below URL this will help you.
https://community.shopify.com/c/Shopify-Design/Default-Image/td-p/91839
I don't get it. I dont know where to put the code. I uploaded the image and added it as an asset.
Okay DStanko.
Refer this link.
https://dozenpixels.com/blog/post/automatically-add-default-images-to-shopify-products
like that,
{% if product.images.size == 0 %}
{{ 'default.png' | asset_url | img_tag }}
<img src="put here img cdn link">
{% else %} // show product image
{% endif %}
if you have image CDN than use
<img src="put here img CDN link">
Shopify ,Shopify plus and Shopify 2.0 theme developer and customization
I Would like to add new functionality or customize an existing one, please hire me.
If helpful then please Like and Accept Solution .
Email: ashiquehussaincodediary@gmail.com
Any response on this yet? Unclear where to place this code.
yeah where do we place the code?
Hi - were you able to figure this out? If not can you let me know what theme you are using and I'll let you know where it needs to go.
Hey, in Venture you should have a folder in Sections -> product-template.liquid where the code can go. There should be an image <meta> tag right at the top of the file where you can add your if/else statement to check if there is a default image available. Let me know if you have further issues and I can take a deeper look.
Thanks,
Gary
What about for the theme "Maker" ? I'm finding it difficult to fix this issue on Maker.
Hi, I know this thread was a while ago, but I am trying to do the same for Dawn theme. As this is now Shopify 2.0 is the solution different?
User | RANK |
---|---|
153 | |
97 | |
71 | |
60 | |
49 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By