I've recently moved my web site over to Shopify. My old web site was coded using HTML and php and I used to use a lot of server-side include code to insert snippets of code from other files which were used for when the same code would appear on multiple (but not all) pages, at the bottom of blog posts, for example, to insert the author details.
Kinda like the following:
<?php include 'include.php';?>
I've had a look around but I cannot see anything like this which will work in the HTML editor for my blog posts and other pages. Editing the theme files is not an option since I may want the snippet to appear at different points up and down the page depending on the content. I've tried to use the liquid snippet include code but this does not work when used outside of the theme or layout files.
Am I missing something? It seems like this should be possible but I cannot find any advice on it.
For pulling using Liquid, which would work better you would need to edit the templates. However you could set it up ahead of time based on tags, or Titles, etc to show on specific Pages using IF statements, or setup different templates based on what your posting.
Following. I'm a noob with coding but I figured there's got to be something available for this out there.
For me, I've got a "New Sellers Checklist" I want to post in multiple places on my website (including in an autogenerated email, if that's possible), but I want to be able to make changes to it as desired and have it automatically update everywhere else.