Help! Metafields doesn’t appear when im adding it to my Spotlight theme

Topic summary

A user encountered an issue where custom metafields weren’t appearing as dynamic source options in the Spotlight theme’s product pages, despite being properly created in Shopify’s Custom Data settings.

Troubleshooting steps suggested:

  • Verify metafield configuration (namespace, key, content type)
  • Ensure metafields contain values for at least one product
  • Try using rich text blocks instead of standard text blocks
  • Manually add metafield code to theme files using Liquid syntax

Key technical details:

  • The theme uses .json section files rather than traditional .liquid product templates
  • Screenshots showed the metafield was configured as a single-line text type
  • One suggestion involved changing the field type from inline_richtext to richtext in the main-product.liquid section

Resolution:
The issue was solved by adding the metafield code directly to a Liquid block, following a YouTube tutorial. Another user confirmed using the same video solution, noting that official Shopify documentation wasn’t sufficient for this specific theme compatibility issue.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Hi

Im trying to add a metafield to my product pages, but when I add the text block and search for the dynamic metafield I already created (Product information) I cannot find it, I already tried several times to create the metafield but nothing works, I don’t know if the theme SPOTLIGHT doesn’t support metafields , do I have to modify the code ?

Please help :disappointed_face:

Hi @jsllp , Here are a few things you can check to resolve this issue:

  • Ensure the Metafield is Set Up Correctly

    • Go to Settings > Custom data > Products and confirm that the metafield exists.
    • Check if it has the correct namespace and key (e.g., custom.product_information).
    • Make sure the content type (Text, Integer, etc.) matches the expected format.
  • Check if the Metafield Has a Value

    • If the metafield is empty for a product, Shopify may not display it as an option. Try adding a value to a product and then recheck the theme editor.
  • Verify If the Theme Supports Dynamic Sources

    • Some blocks (like text blocks) may not support dynamic sources. Try adding it inside a rich text block instead.
  • Manual Code Addition (If Needed)

    • If the metafield still doesn’t appear, you may need to modify the theme code. Try adding this snippet inside product.liquid or the relevant section file:
{{ product.metafields.custom.product_information }}
  • This should display the metafield on the product page.

Hi thank you

I checked everything, so I think it’s a prolem of the theme, but i don’t have the product.liquid so I don’t know where to try the code, I have theme.liquid

Thanks :slightly_smiling_face:

And have product.json also, sorry i’m not an expert

Just to confirm, which type you have selected to content add when you created metefield? Connect that metafield in Richtext

Or else just share the screenshot of the metafile definition and the screenshot of field type where you would like to fetch it.

@jsllp so it looks like for the type text the theme used inline_richtext type. try to update it with only type: “richtext”.

It’ll be in main-product.liquid section file I think

Thank you I tried but still nothing works :disappointed_face:

Hi I find a video that had the solution to the problem https://www.youtube.com/watch?v=z_HL82_6Ank&ab_channel=EdCodes-ShopifyDIYTutorials

I had to add the code to a liquid block and add a little more to have the text organized, thank you for your help

1 Like

Yes! I used exactly the same video for this problem. No amount of Shopify docs would’ve helped.