Liquid Programming Annoyances (and Workarounds)
A few little gotchas in Liquid (Shopify’s theming language) and some ways to work around them – conditionals with “contains,” type casting, variable scope in loops.
A few little gotchas in Liquid (Shopify’s theming language) and some ways to work around them – conditionals with “contains,” type casting, variable scope in loops.
A solution for maintenance-free breadcrumbs for Shopify sites, based on the menu hierarchy. If the client changes the menu, the breadcrumbs automatically update.
You think if you can just find the right spot in the documentation, you can figure out multi-dimensional arrays in Liquid. Actually, you can’t. There is no way to create them. But this clever(?) but cumbersome workaround will get the job done.
A simple “brush” for Syntax Highlighter Evolved which will not only add syntax highlighting for Liquid, it will also let you simply and easily add a Liquid code block in Gutenberg in Wordpress. Handy if you are going to blog about Liquid or Shopify.