Shopify themes, liquid, logos, and UX
I had a snippet in my code:
style="background-color: {{ collection.metafields.custom_fields.color | color_darken: 4 }};"
that had been working perfectly up until yesterday evening. Now, I only see a color if I remove "color_darken: 4". I've tested and color_darken still works, but only so long as I only use it with a hex string, and not a variable that evaluates to a hex string.
Has anyone else noticed this change in functionality? Or is it a bug that I might be able to fix?
{% capture my_color %}{{ product.metafields.test.accent_colour }}{% endcapture %}
{% assign my_darkened_color %}{{my_color | color_darken: 4 }}{% endcapture %}
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024