Banner Image /Metafields

Banner Image /Metafields

ONYXLights
Excursionist
33 0 8

HI There,

 

I just added a Banner Image with the dynamic link to a Metafield, the image is showing correctly on the product product.  However, on all the other pages it's showing a blank section with the text NO IMAGE.  HoScreenshot 2025-02-26 122240.pngScreenshot 2025-02-26 122139.pngw do I get the space to only show if there is an image in it?

Replies 4 (4)

ZubayerShopidev
Shopify Partner
16 0 0
Check if you are using the correct metafield. Inspect Shopify's Liquid code to see what output is being generated.
-Ensure that the metafield is displaying correctly on the product page and verify the same check on other pages.
Also, please share the link to your tag page so we can review the issue further.
ONYXLights
Excursionist
33 0 8

Thank you.  But I don't really understand how to do any of that.  this is the link tot he products... it's the 'What's Included' section closer tot he bottom. https://onyxlights.com.au/collections/driving-lights/products/ion-l-9-g2

ZubayerShopidev
Shopify Partner
16 0 0

It seems like you're saying that you've checked your store and suspect there might be an issue with how the metafield is set up. Let me explain this in English for clarity:

Ensure the Metafield is Set Up Correctly

Metafields in Shopify are scoped to specific resources, such as products, collections, customers, or orders. If your metafield is only scoped to products, it will only be available on product pages. This means that when you try to access the metafield on other pages (like the homepage, collection pages, or blog pages), it won’t be available, resulting in a blank section or the "NO IMAGE" text.

Sonya_2025
Shopify Partner
346 37 60

Hi @ONYXLights 

Seems like you have products need to use different templates

I think you should create two different products templates. one for the product that have the image. the other for the product that do not have the image 

Please let me know if it works by giving it a Like or marking it as a solution!
Feel free to reach out.Get Shopify free trial 1$/mon
 EMAIL ME  Motivate me by  PAY ME