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 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025