Shopify themes, liquid, logos, and UX
I have mostly shirts in my store so I want to create a size chart that's collapsible in the product page. I'm going to use a dynamic content connected to a page. I create a page for men's sizes, and a page for toddler sizes. But for things like coffee mug, the entire thing doesn't make sense so I will not select any element in the metadata field. I wanted to make it so the row doesn't show up.
I tried something like check to see if
block.settings.content != blank
or
block.settings.page.content != blank
But it doesn't work. I think it's because it's dynamic content?
Instead of editing theme code use alternate templates for behavior like this.
If you must do this as code verify what you think your operating on and output it directly for inspection:
block.settings.page.content: "--> {{ block.settings.page.content }} <--" , the <--" are just random characters to ensure it's easy to spot actually empty content.
It may need to be {% if block.settings.page.content != "" %} , {% if block.settings.page.content != "<p></p>" %} or some such
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024