All things Shopify and commerce
Hello,
I would like to change the Title on my All Products Page. Currently it is set to "Products" and it appears I am unable to change it without editing code. I found the code below, in "Theme.liquid". Can someone tell me where the All Products Page "collection.title" value is located?
<h1 class="collection-hero__title">
<span class="visually-hidden">{{ 'sections.collection_template.title' | t }}: </span>
{{- collection.title | escape -}}
</h1>
I tried changing it to "Something Else", which worked...however "Something Else" also displayed on my Collection page H1 titles.
<h1 class="collection-hero__title">
<span class="visually-hidden">{{ 'sections.collection_template.title' | t }}: </span>
Something Else
</h1>
Any suggestions are appreciated.
Thanks in advance,
Thomas
Sme here. I am looking for the same solution to change "Products" word to something else.
I found this with CSS selector but couldn't find the source code.
<h1 class="collection-hero__title">
<span class="visually-hidden">Collection: </span>Products</h1>
If any one know where can we find the source code to change this "product" word, it will be highly appricated.
{{- collection.title | escape -}}
{% assign current_title = collection.title %}
{% if canonical_url contains '/collections/all' %}
{% assign current_title = 'All Products' %}
{% endif %}
{{- current_title | escape -}}
Of course, do not forget that if you use several languages on your site, you need to add translation strings to the files that correspond to your languages in the system.
For example, if your site is presented in two languages (English / Spanish), you can do this:
"all_products_title": "All products (or whatever you want)"
"all_products_title": "Todos los productos (or whatever you want in Spanish)"
'sections.collection_template.all_products_title' | t
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025