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.
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.
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 ?
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:
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