Hi! I want to insert an image into a collapsible row on my Product template as a place to put my size chart on each product. I read online that there may need to be some custom code put in to do this. Does anyone have some short code fixes to do this? Currently, there is a page metafield linked to different pages with pictures of the size chart, but I dont need all of the extra pages on my site.
What you have now is probably the simplest and cleanest solution.
It’s possible to use “Custom liquid” block with some code in it to fetch and render image from metafield, but I do not have it handy right now.
If you’re worried about SEO for these extra pages you can add a seo.hidden metafields to them like below.
Setting it to 1 will hide the page from search engines, sitemaps and site search.
Of course – not all metafields are compatible with this setting.
That setting is for textual content and image type MF is not shown.
To create a MF for pages go to Settings-> Metafields and metaobjects-> Pages and add a MF there.
It will appear on the page page in admin then. (unintended pun : )