Change the "Brand" filter to another title

Hi hi,

I am looking to change my current filter option on Shopify Dawn from “Brand” to “Artists”… any suggestions on how to do this? I thought it would be simple to find where to fix it but I have had no luck so far…

SITE: https://e1c8d3.myshopify.com/collections/kimathi-mafafo-1985

PASSWORD: thaits

Thanks in advance!

Hi @Bird_on_a_Wire

Please follow these steps:

  • Go to Theme => Edit code

  • Find the file facets.liquid:
![view (26).png|301x478](upload://q1zVjW0mmHLddfv4Hz833zP0xhB.png)
  • Find the following code:
class="facets__summary caption-large focus-offset"
  • Edit the content in the span tag to Artists:

  • Here is the result:

A note that we tried it on the Dawn theme. Hope that it will work for you.

Hi @BSS-Commerce

Thanks for your tips but I am coming up empty… I searched class=“facets__summary caption-large focus-offset” but cant seem to find the Brand text anywhere under it…

Maybe you can spot it in my facets.liquid file below?

{% comment %}
    Renders facets (filtering and sorting)

    Accepts:
    - results: {Object} Collection or Search object
    - enable_filtering: {Boolean} Show filtering when true
    - enable_sorting: {Boolean} Show sorting when true
    - filter_type: {String} Type of filter

    Usage:
    {% render 'facets', results: collection, enable_filtering: true, enable_sorting: true, filter_type: 'vertical' %}
{% endcomment %}

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

{%- liquid
  assign sort_by_hidden_options = 'Best selling + Price, low to high + Featured + Price, high to low' | split: ' + '
  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
-%}

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

Hi @BSS-Commerce

Thank you for your reply but not had any luck. Searched for class=“facets__summary caption-large focus-offset” but there is no section with content in the span tag that says Brand that i can see… i have added my facets.liquid code below for you to have a look at- maybe I am just missing it?

{% comment %}
    Renders facets (filtering and sorting)

    Accepts:
    - results: {Object} Collection or Search object
    - enable_filtering: {Boolean} Show filtering when true
    - enable_sorting: {Boolean} Show sorting when true
    - filter_type: {String} Type of filter

    Usage:
    {% render 'facets', results: collection, enable_filtering: true, enable_sorting: true, filter_type: 'vertical' %}
{% endcomment %}

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

{%- liquid
  assign sort_by_hidden_options = 'Best selling + Price, low to high + Featured + Price, high to low' | split: ' + '
  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
-%}

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

@BSS-Commerce Just checking in to see if you have any further suggestions?

Hi @Bird_on_a_Wire

We’re sorry for missing your reply. The position needs to fix here:

  • Here is the code that needs to fix:

view (22).png

  • You can change this code to:

  {% if filter.label == "Brand" %}
    {{ "Artists" | escape }}
  {% else %}
    {{ filter.label | escape }}
  {% endif %}
  {%- if filter_type == 'vertical' -%}
     ({{ filter.active_values.size }})
  {% endif %}

I hope that this can help you.

1 Like

@BSS-Commerce thank you! Works like a charm!

1 Like

Hi @BSS-Commerce I have another question to add to this thread.

When I use the filter (Formally “Brand” now changed to “Artist”) and select an Artist to filter by, the selected option still shows “brand” how do I change this to “Artist” instead? See screenshot below

SITE: https://e1c8d3.myshopify.com/collections/kimathi-mafafo-1985

PASSWORD: thaits

Thanks in advance!

1 Like

Hi @Bird_on_a_Wire

Please follow these steps:

  • Go to Themes => Edit Code:
![pasted image 0.png|1579x710](upload://37cjXf9YOWhbyI8Hpjh7nn5aOHm.png)
  • Find the file facets.liquid:
![view (5).png|538x411](upload://svjmvZ5YrQfML91PEHjen8oXSFh.png)
  • Then, you find the following code:
class="active-facets__button-inner button button--tertiary"
  • There are codes that need to be replaced:

  • You replace the following code:
{{ filter.label }}: {{ value.label | escape }}

to:

{% if filter.label == "Brand" %}
  Artists
{% else %}
  {{ filter.label }}
{% endif %}: {{ value.label | escape }}

There are 4 positions in the file that need to be fixed. We hope that this can help you.

1 Like

Thank you for your quick response @BSS-Commerce that has worked!

1 Like