I would like to insert a snippet into the content area of a Page.
This is so I can show a message on a number of pages, and only have to change the message once in the snippet, and it will change on all the pages using that snippet.
I cant use it in the template code, as it is only to be shown on certain pages, not all pages using that template.
Is there a way to render a snippet in a pages content area? Screenshot below.. Any help would be appreciated!
You cannot add liquid code at page content. With page content you can just add HTML, CSS and JS code.
So I recommend creating a new template for pages that want to add snippet code. Refer https://i.imgur.com/bTSdng3.png
After you create it, you can add the snippet code to it. Finally, you just need to go to the pages you want to show the snippet code and choose a new template. Refer https://i.imgur.com/ks54SPh.png
Hope it clear to you.
I saw you liked my answer. If it helped you solve your issue, please mark it as a solution.
Thank you and good luck.