Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi I am trying to inject a piece of CSS code into a rich text block. I want to insert multiple background images to the same container example:
.content-container {background-image: var(--mountain-graphic1), var(--mountain-graphic2);}
However, this does not work if I inspect the element on the site it shows that the second var() value returns the section ID before the var value and fails to display any of the background images. Like this:
.content-container {background-image: var(--mountain-graphic), #shopify-section-template--xxxxxxxxxxxxxxxxxxx var(--mountain-graphic)};
Additionally, if I remove the comma and inspect it again, it makes a CSS class without the comma and does not display. As seen here:
.content-container {background-image: var(--mountain-graphic) var(--mountain-graphic);}
Using Dawn theme.
Any guidance will be appreciated
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025