A user needed to display metafield data on product pages using custom Liquid code but couldn’t find the “Custom Liquid” block option in their theme’s product information section.
Initial Problem:
One store had a built-in “Custom Liquid” option that worked perfectly
Another store lacked this option despite following a tutorial to add it
The user could create a custom liquid section but needed it as a block within an existing section
so, on one of my stores, I have the “custom liquid” option in themes, which I used to pull data from a metafield into the product pages. Dead simple
Another of our stores, doesnt have the “custom liquid” as an option, so, I followed this simple tutorial, however, it doesnt work. I dont see the custom liquid option?
Some themes by default doesn’t supports the Custom Liquid section so you can just simply add it manually in your theme files by following This Tutorial
I would highly recommend you to duplicate your theme before making any code changes and if you’re not comfortable in coding the hiring a Shopify developer would be the best option for you.
I have managed to create the section, but, I cant insert it as a block, as the second post here. I “need” to put it where I want it, but, I cant seem to on this one somehow. I can only add a block, within that section to make it correct as far as appearance on the page. If that makes sense?
Ah, funny enough mate, the html one actually accepted the code straight up, so, thats done it. I didnt even look at it as it wasnt liquid, but it does say supports it, and it works Nice one, thank you