I am having trouble removing or hiding backend product tags from my Shopify storefront. I am familiar with html and js but not liquid syntax.
Here are the codes I have been playing with
{%- for value in filter.values -%}
{%- unless value contains ‘_’ -%}
{%- if value contains ‘_’ -%}{ value = false }
{%- if filter.()value(s) == '’ -%}{ value = false }
{%- else <li class=" list-menu__item facets__item{% if forloop.index > 10 and filter_type == ‘vertical’ %} {% endif %}" -%}>
{%- if value contains ‘_’ -%}
{%- if value contains ‘_’ -%}
<value_to_remove>
{%- if value contains ‘_’ -%}
{%- if value contains ‘_’ -%}
{%- if value contains ‘_’ -%}
{ value_to_remove }
FULL CODE
{{ filter.label | escape }}-
{%- for value in filter.values -%}
{%- unless value contains '_' -%}
-
<svg
width=“1.6rem”
height=“1.6rem”
viewBox=“0 0 16 16”
aria-hidden=“true”
focusable=“false”
<svg
aria-hidden=“true”
class=“icon icon-checkmark”
width=“1.1rem”
height=“0.7rem”
viewBox=“0 0 11 7”
fill=“none”
xmlns=“http://www.w3.org/2000/svg”
{{ value.label | escape }} ({{ value.count }})
{{- value.label | escape }} (
{%- if value.count == 1 -%}
{{- ‘products.facets.product_count_simple.one’ | t: count: value.count -}}
{%- else -%}
{{- ‘products.facets.product_count_simple.other’ | t: count: value.count -}}
{%- endif -%}
)</span
{% endunless %}
{%- endfor -%}
-
{%- for value in filter.values -%}
-
<svg
width=“1.6rem”
height=“1.6rem”
viewBox=“0 0 16 16”
aria-hidden=“true”
focusable=“false”
<svg
aria-hidden=“true”
class=“icon icon-checkmark”
width=“1.1rem”
height=“0.7rem”
viewBox=“0 0 11 7”
fill=“none”
xmlns=“http://www.w3.org/2000/svg”
{{ value.label | escape }} ({{ value.count }})
{{- value.label | escape }} (
{%- if value.count == 1 -%}
{{- ‘products.facets.product_count_simple.one’ | t: count: value.count -}}
{%- else -%}
{{- ‘products.facets.product_count_simple.other’ | t: count: value.count -}}
{%- endif -%}
)</span
{%- unless value contains ‘_’ -%}
{%- endunless -%}
{%- endfor -%}
I must have written a hundred variations. I was able to hide my backend product tags but not frontend!
Anyone have any solutions?
