A space to discuss online store customization, theme development, and Liquid templating.
I'm using metafield lists for underneath my product descriptions and I noticed if your list is less than 3 items, it will automatically use the word "and" instead of bullet points. Is there any way to edit the code so that it always displays as bullet points?
For example, I want it to display as:
But instead it displays as:
"Free US Shipping and Free US Returns"
As soon as I list three items, it switches to bullet points.
Thanks!
yes you have create your meta filed add this code
{%- if product.metafields.custom.product_points != blank -%}
<div class="product_points">
<ul>
{% for product_point in product.metafields.custom.product_points.value %}
<li>{{ product_point }}</li>
{% endfor %}
</ul>
</div>
{%- endif -%}