Shopify themes, liquid, logos, and UX
I have a landing page that customize for each school we sell to. The landing page template currently has the following:
{% assign SchoolName = page_title %}
{% include SchoolName %}
and that renders a snippet named for the school. I create a snippet with the school name and custom information.
If I use {% render SchoolName %}
it does not work because render doesn't like variables.
Is there a better/not deprecated/best practice way to do this?
My snippets have a little bit of JS which work as snippets but not if I fully customize the landing page
In our experience using includes may cause performance issues with shopify embedded app blocks.
We run an automated check in one of our apps to detect a popular script that uses "include" instead of "render" that may cause bugs to our app.
You can still use variable with render, is just that you have to follow this syntax:
{% render 'liquidfile', variable: "yourvalue" %}
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024