Snippet code into Page content area?

Justinvz777
New Member
2 0 0

Hi, 
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!

Justinvz777_0-1635908292345.png

 

Replies 3 (3)
LitExtension
Shopify Partner
1958 324 395

Hi @Justinvz777,

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.

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!
Justinvz777
New Member
2 0 0

OK, Thankyou for your suggestion. I will give it a go!

LitExtension
Shopify Partner
1958 324 395

Hi @Justinvz777,

I saw you liked my answer. If it helped you solve your issue, please mark it as a solution.

Thank you and good luck.

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!