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" %}
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024