FROM CACHE - en_header

Change the "no image" Picture | Supply theme

DStanko
Pathfinder
160 0 4

I need to change the shopify no image photo to one of my own.

Replies 12 (12)
oscprofessional
Shopify Partner
12094 1876 2404

Hello 

Refer below URL this will help you.
https://community.shopify.com/c/Shopify-Design/Default-Image/td-p/91839

Please Like and Accept Solution. Free website audit to grow your business Chat on WhatsApp | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87 | Hire us | Expert Site Speed Optimization | Performance Site Audit | Shopify Private App | Custom Theme Development & Modifications any Shopify Theme | Shopify SEO | Digital Marketing
DStanko
Pathfinder
160 0 4

I don't get it. I dont know where to put the code. I uploaded the image and added it as an asset.

oscprofessional
Shopify Partner
12094 1876 2404

Okay 
Refer this link.
https://dozenpixels.com/blog/post/automatically-add-default-images-to-shopify-products

Please Like and Accept Solution. Free website audit to grow your business Chat on WhatsApp | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87 | Hire us | Expert Site Speed Optimization | Performance Site Audit | Shopify Private App | Custom Theme Development & Modifications any Shopify Theme | Shopify SEO | Digital Marketing
ashiqueh4
Shopify Partner
361 34 56

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

DStanko
Pathfinder
160 0 4

and where do i paste that?

AndyFine
New Member
2 0 1

Any response on this yet? Unclear where to place this code.

jarcustomsllc
Tourist
4 0 5

yeah where do we place the code?

gburner515
Shopify Partner
7 0 1

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.

jarcustomsllc
Tourist
4 0 5

I am using venture theme!

gburner515
Shopify Partner
7 0 1

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

Devonbrady
New Member
1 0 0

What about for the theme "Maker" ? I'm finding it difficult to fix this issue on Maker.

LanceAllison
Shopify Partner
10 0 4

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?