how to hide this one

filter in the product
https://n2let9qiifhun86s-53134196927.shopifypreview.com

1 Like

Hi @niceeee , What theme do you use?

Hi @niceeee ,

Please send me the code of facets.liquid file, I will check it for you

{{ 'component-visual-display.css' | asset_url | stylesheet_tag }}
{{ 'component-show-more.css' | asset_url | stylesheet_tag }}

{%- liquid
  assign sort_by = results.sort_by | default: results.default_sort_by
  assign total_active_values = 0
  if results.url
    assign results_url = results.url
  else
    assign terms = results.terms | escape
    assign results_url = '?q=' | append: terms | append: '&options%5Bprefix%5D=last&sort_by=' | append: sort_by
  endif
-%}

{% comment %} category {% endcomment %}
{% if filter_type == 'vertical' and enable_fill_category == true %} 

  {%- for link in section.settings.menu.links -%}
    - {%- if link.links != blank -%}
        
        {%- else -%}
        
          
              {{- link.title | escape -}}
          
        
        {%- endif -%}
    
  {%- endfor -%}

{% endif %}
{% comment %} category end {% endcomment %}

  {%- if filter_type == 'vertical' or filter_type == 'horizontal' -%}
    
    {% comment %} Sorting for vertical filter are grouped with filter when no JS{% endcomment %}
    {%- if enable_sorting and filter_type == 'vertical' -%}
      
    {%- endif -%}    
  {%- endif -%}
  {% comment %}  Drawer and mobile filter {% endcomment %}
  
  

    {%- for filter in results.filters -%}
      {%- for value in filter.active_values -%}
        
      {%- endfor -%}
      {%- if filter.type == "price_range" -%}
        {%- if filter.min_value.value != nil or filter.max_value.value != nil -%}
          
        {%- endif -%}
      {%- endif -%}
    {%- endfor -%}
    
  

  {% comment %} Sort, product count and filter pills at the end when filter is type of Drawer for the correct tabbing order {% endcomment %}
  {%- if enable_sorting and filter_type == 'drawer' -%}
    
  {%- endif -%}
  

    ##  {%- if results.results_count -%} {{ 'templates.search.results_with_count' | t: terms: results.terms, count: results.results_count }} {%- elsif results.products_count == results.all_products_count -%} {{ 'products.facets.product_count_simple' | t: count: results.products_count }} {%- else -%} {{ 'products.facets.product_count' | t: product_count: results.products_count, count: results.all_products_count }} {%- endif -%} 
      
      
    

  

  {%- if filter_type == 'drawer' -%}
    
  {%- endif -%}

veena theme

{{ ‘component-visual-display.css’ | asset_url | stylesheet_tag }}
{{ ‘component-show-more.css’ | asset_url | stylesheet_tag }}

{%- liquid
assign sort_by = results.sort_by | default: results.default_sort_by
assign total_active_values = 0
if results.url
assign results_url = results.url
else
assign terms = results.terms | escape
assign results_url = ‘?q=’ | append: terms | append: ‘&options%5Bprefix%5D=last&sort_by=’ | append: sort_by
endif
-%}

{% comment %} category {% endcomment %}
{% if filter_type == ‘vertical’ and enable_fill_category == true %}

    {%- for link in section.settings.menu.links -%}
  • {%- if link.links != blank -%}
    {{- link.title | escape -}} {% render 'icon-caret' %}
    {%- else -%} {{- link.title | escape -}} {%- endif -%}
  • {%- endfor -%}
{% endif %} {% comment %} category end {% endcomment %}

{%- if filter_type == ‘vertical’ or filter_type == ‘horizontal’ -%}

{%- if results.terms -%} {%- endif -%} {% if enable_filtering %}
{%- if filter_type == 'horizontal' and results.filters != empty -%}

{{ 'products.facets.filter_by_label' | t }}

{%- endif -%} {%- if filter_type == 'vertical' -%}
{%- unless results.filters == empty -%}

{{ 'products.facets.filter_by_label' | t }}

{%- endunless -%} {{ 'products.facets.clear_all' | t }}
{%- for filter in results.filters -%} {%- for value in filter.active_values -%} {{ filter.label }}: {{ value.label | escape }} {% render 'icon-close-small' %} {{ 'products.facets.clear_filter' | t }} {%- endfor -%} {% if filter.type == "price_range" %} {%- if filter.min_value.value != nil or filter.max_value.value != nil -%} {%- if filter.min_value.value -%}{{ filter.min_value.value | money }}{%- else -%}{{ 0 | money }}{%- endif -%}-{%- if filter.max_value.value -%}{{ filter.max_value.value | money }}{%- else -%}{{ filter.range_max | money }}{%- endif -%} {% render 'icon-close-small' %} {{ 'products.facets.clear_filter' | t }} {%- endif -%} {% endif %} {%- endfor -%}
{%- endif -%} {% comment %} Filters for both horizontal and vertical filter {% endcomment %} {%- for filter in results.filters -%} {% liquid assign total_active_values = total_active_values | plus: filter.active_values.size case filter.presentation when 'swatch' assign has_visual_display = true assign show_more_number = 15 assign visual_layout_class = 'facets-layout-grid facets-layout-grid--' | append: filter.presentation else assign has_visual_display = false assign visual_layout_class = 'facets-layout-list' assign show_more_number = 10 endcase%} {% case filter.type %} {% when 'boolean' or 'list' %}
{{ filter.label | escape }}{%- if filter_type == 'vertical' -%} ({{ filter.active_values.size }}){% endif %} {% render 'icon-caret' %}
{%- if filter_type != 'vertical' -%}
{{ 'products.facets.filters_selected' | t: count: filter.active_values.size }} {{ 'products.facets.reset' | t }}
{%- endif -%} {{ filter.label | escape }}
    {%- for value in filter.values -%} {% liquid assign is_disabled = false if value.count == 0 and value.active == false assign is_disabled = true endif %}
  • {%- liquid assign swatchfilename = value.label | handle | append: '.' | append: 'png' assign swatchimage = swatchfilename | file_img_url: '50x50' | prepend: 'https:' | split: '?' | first assign colorswatchvalue = value.label | downcase | replace: ' ', '' -%} {% if has_visual_display %}
    {% render 'visual-display', type: value.display.type, value: value.display.value, presentation: filter.presentation %}
    {% else %} {% endif %} {{- 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 %})
  • {%- endfor -%}
{% comment %} No show more for no JS {% endcomment %}
    {%- for value in filter.values -%}
  • {% render 'icon-checkmark' %} {{ 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 %})
  • {%- endfor -%}
{%- if filter.values.size > show_more_number and filter_type == 'vertical' -%} + {{ 'products.facets.show_more' | t }} - {{ 'products.facets.show_less' | t }} {%- endif %}
{% when 'price_range' %} {% liquid assign currencies_using_comma_decimals = 'ANG,ARS,BRL,BYN,BYR,CLF,CLP,COP,CRC,CZK,DKK,EUR,HRK,HUF,IDR,ISK,MZN,NOK,PLN,RON,RUB,SEK,TRY,UYU,VES,VND' | split: ',' assign uses_comma_decimals = false if currencies_using_comma_decimals contains cart.currency.iso_code assign uses_comma_decimals = true endif %}
{{ filter.label | escape }}{% render 'icon-caret' %}
{%- assign max_price_amount = filter.range_max | money | strip_html | escape -%} {{ "products.facets.max_price" | t: price: max_price_amount }} {%- if filter_type != 'vertical' -%} {{ 'products.facets.reset' | t }} {%- endif -%}
{{- 'products.facets.from' | t -}}
{{- 'products.facets.to' | t -}}
{% endcase %} {%- endfor -%} {{ 'products.facets.filter_button' | t }}
{% comment %} Pills after filtes on filter type horizontal {% endcomment %} {%- if filter_type == 'horizontal' -%} {%- endif -%} {% endif %} {% if results.current_vendor or results.current_type %} {% endif %} {%- if filter_type == 'horizontal' -%} {% comment %} Sorting and product count are the last elements when filter type is horizontal {% endcomment %} {%- if enable_sorting -%}

{{ 'products.facets.sort_by_label' | t }}

{%- assign sort_by = results.sort_by | default: results.default_sort_by -%} {% render 'icon-caret' %}
{{ 'products.facets.sort_button' | t }}
{%- endif -%}

{%- if results.results_count -%} {{ 'templates.search.results_with_count' | t: terms: results.terms, count: results.results_count }} {%- elsif results.products_count == results.all_products_count -%} {{ 'products.facets.product_count_simple' | t: count: results.products_count }} {%- else -%} {{ 'products.facets.product_count' | t: product_count: results.products_count, count: results.all_products_count }} {%- endif -%}

{%- endif -%} {% comment %} Sorting for vertical filter are grouped with filter when no JS{% endcomment %} {%- if enable_sorting and filter_type == 'vertical' -%}

{{ 'products.facets.sort_by_label' | t }}

{%- assign sort_by = results.sort_by | default: results.default_sort_by -%} {% render 'icon-caret' %}
{{ 'products.facets.sort_button' | t }}
{% if results.current_vendor or results.current_type %} {% endif %} {%- if results.terms -%} {%- endif -%} {%- endif -%} {%- endif -%} {% comment %} Drawer and mobile filter {% endcomment %}
{% render 'icon-filter' %} {%- if enable_filtering and enable_sorting -%} {{ 'products.facets.filter_and_sort' | t }} {%- elsif enable_filtering -%} {{ 'products.facets.filter_button' | t }} {%- elsif enable_sorting -%} {{ 'products.facets.sort_button' | t }} {%- endif -%} {%- if enable_filtering -%}{{ 'products.facets.filter_button' | t }}{%- endif -%} {%- render 'icon-close' -%}

{%- if enable_filtering and enable_sorting -%} {{ 'products.facets.filter_and_sort' | t }} {%- elsif enable_filtering -%} {{ 'products.facets.filter_button' | t }} {%- elsif enable_sorting -%} {{ 'products.facets.sort_button' | t }} {%- endif -%}

{%- if enable_filtering -%}{{ 'products.facets.filter_button' | t }}{%- endif -%}

{%- if results.results_count -%} {{ 'templates.search.results_with_count' | t: terms: results.terms, count: results.results_count }} {%- elsif results.products_count == results.all_products_count -%} {{ 'products.facets.product_count_simple' | t: count: results.products_count }} {%- else -%} {{ 'products.facets.product_count' | t: product_count: results.products_count, count: results.all_products_count }} {%- endif -%}

{% comment %} category {% endcomment %}
    {%- for link in section.settings.menu.links -%}
  • {%- if link.links != blank -%}
    {{- link.title | escape -}} {% render 'icon-caret' %}
    {%- else -%} {{- link.title | escape -}} {%- endif -%}
  • {%- endfor -%}
{% comment %} category end {% endcomment %}
{%- if enable_filtering -%} {%- for filter in results.filters -%} {% liquid case filter.presentation when 'swatch' assign has_visual_display = true assign visual_layout_class = 'facets-layout-grid facets-layout-grid--' | append: filter.presentation else assign has_visual_display = false assign visual_layout_class = 'facets-layout-list' endcase %} {% case filter.type %} {% when 'boolean' or 'list' %}
{{ filter.label | escape }} {% render 'icon-arrow' %} {% render 'icon-caret' %}
{% render 'icon-arrow' %} {{ filter.label | escape }}
    {%- for value in filter.values -%} {% liquid assign is_disabled = false if value.count == 0 and value.active == false assign is_disabled = true endif %}
  • {%- liquid
    assign swatchfilename = value.label | handle | append: ‘.’ | append: ‘png’
    assign swatchimage = swatchfilename | file_img_url: ‘50x50’ | prepend: ‘https:’ | split: ‘?’ | first
    assign colorswatchvalue = value.label | downcase | replace: ’ ', ‘’
    -%}
    <input class=“mobile-facets__checkbox” type=“checkbox” name=“{{ value.param_name }}” value=“{{ value.value }}” id=“Filter-{{ filter.label | escape }}-mobile-{{ forloop.index }}”
    {% if value.active %}checked{% endif %}
    {% if value.count == 0 and value.active == false %}disabled{% endif %}
    {% if filter.label == ‘Color’ %}style="background-color: {{ colorswatchvalue }};{% if images[swatchfilename] != blank %} background-image: url({{ swatchimage }});{% endif %} "{% endif %}>


    {% render ‘icon-checkmark’ %}

    {{ 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 %})

  • {%- endfor -%}
{{ 'products.facets.clear' | t }} {{ 'products.facets.apply' | t }} {{ 'products.facets.apply' | t }}
{% when 'price_range' %}
{{ filter.label | escape }} {% render 'icon-arrow' %} {% render 'icon-caret' %}
{% render 'icon-arrow' %} {{ filter.label | escape }} {%- assign max_price_amount = filter.range_max | money | strip_html | escape -%}

{{ "products.facets.max_price" | t: price: max_price_amount }}

{{- 'products.facets.from' | t -}}
{{- 'products.facets.to' | t -}}
{{ 'products.facets.clear' | t }} {{ 'products.facets.apply' | t }} {{ 'products.facets.apply' | t }}
{% endcase %} {%- endfor -%} {%- endif -%} {%- if enable_sorting -%}
{{ 'products.facets.sort_by_label' | t }}
{% render 'icon-caret' %}
{%- endif -%}
{{ 'products.facets.clear_all' | t }}{{ 'products.facets.apply' | t }}{{ 'products.facets.apply' | t }}
{% if results.current_vendor or results.current_type %}{% endif %}{%- if results.terms -%}{%- endif -%}
{% comment %} Sort, product count and filter pills at the end when filter is type of Drawer for the correct tabbing order {% endcomment %} {%- if enable_sorting and filter_type == 'drawer' -%}

{{ 'products.facets.sort_by_label' | t }}

{%- assign sort_by = results.sort_by | default: results.default_sort_by -%} {% render 'icon-caret' %}
{{ 'products.facets.sort_button' | t }}
{% if results.current_vendor or results.current_type %} {% endif %} {%- if results.terms -%} {%- endif -%} {%- endif -%}

{%- if results.results_count -%} {{ 'templates.search.results_with_count' | t: terms: results.terms, count: results.results_count }} {%- elsif results.products_count == results.all_products_count -%} {{ 'products.facets.product_count_simple' | t: count: results.products_count }} {%- else -%} {{ 'products.facets.product_count' | t: product_count: results.products_count, count: results.all_products_count }} {%- endif -%}

{%- if filter_type == 'drawer' -%} {%- endif -%}

Hi @niceeee ,

Please change all code:

{{ 'component-visual-display.css' | asset_url | stylesheet_tag }}
{{ 'component-show-more.css' | asset_url | stylesheet_tag }}

{%- liquid
  assign sort_by = results.sort_by | default: results.default_sort_by
  assign total_active_values = 0
  if results.url
    assign results_url = results.url
  else
    assign terms = results.terms | escape
    assign results_url = '?q=' | append: terms | append: '&options%5Bprefix%5D=last&sort_by=' | append: sort_by
  endif
-%}

{% comment %} category {% endcomment %}
{% if filter_type == 'vertical' and enable_fill_category == true %} 

  {%- for link in section.settings.menu.links -%}
    - {%- if link.links != blank -%}
        
        {%- else -%}
        
          
              {{- link.title | escape -}}
          
        
        {%- endif -%}
    
  {%- endfor -%}

{% endif %}
{% comment %} category end {% endcomment %}

  {%- if filter_type == 'vertical' or filter_type == 'horizontal' -%}
    
    {% comment %} Sorting for vertical filter are grouped with filter when no JS{% endcomment %}
    {%- if enable_sorting and filter_type == 'vertical' -%}
      
    {%- endif -%}    
  {%- endif -%}
  {% comment %}  Drawer and mobile filter {% endcomment %}
  
  

    {%- for filter in results.filters -%}
      {%- for value in filter.active_values -%}
        
      {%- endfor -%}
      {%- if filter.type == "price_range" -%}
        {%- if filter.min_value.value != nil or filter.max_value.value != nil -%}
          
        {%- endif -%}
      {%- endif -%}
    {%- endfor -%}
    
  

  {% comment %} Sort, product count and filter pills at the end when filter is type of Drawer for the correct tabbing order {% endcomment %}
  {%- if enable_sorting and filter_type == 'drawer' -%}
    
  {%- endif -%}
  

    ##  {%- if results.results_count -%} {{ 'templates.search.results_with_count' | t: terms: results.terms, count: results.results_count }} {%- elsif results.products_count == results.all_products_count -%} {{ 'products.facets.product_count_simple' | t: count: results.products_count }} {%- else -%} {{ 'products.facets.product_count' | t: product_count: results.products_count, count: results.all_products_count }} {%- endif -%} 
      
      
    

  

  {%- if filter_type == 'drawer' -%}
    
  {%- endif -%}