Log in
Log into community
Welcome to the Liquify Community
New post
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 2 months ago
0
Follow
Per product background colour
Per product background colour
Inactive
0
Follow
f
fergie77
2 months ago
Β·
I'm looking to set a background colour for each product block, using a metafield to store each colour hex. I'd seen a post about using x-bind:style but I'm struggling to figure out how exactly to do it using metafields, is this possible?
f
j
2 comments
Share
Open in Discord
f
fergie77
2 months ago
Nevermind got it! Using li-attribute:style = "background-color= {{product.metafields.custom.colour}} if anyone else gets stuck on this
j
jonas.halbstark
2 months ago
Perfect π thats correct
Add a reply
Sign up and join the conversation on Discord
Join on Discord