Collection List | Changing Collections Link Title

Solved
realina
Visitor
1 0 0

Hi guys,

I'm using Minimal theme. On my Home Page I have a collections list, and each of the collection links has its own, automatically generated link title. We can see this title in the hover text and in the page source code.

 

Understand it's generated from the file collection-grid-item.liquid, and looks like this (in blue):

<a href="{{ collections[featured].url}}" title="{{'collections.general.link_title' | t: title: collection_title }}" class="grid-link{% if settings.collections_center_grid_link %} text-center{% endif %}">

 

Though in the page source and hover text the title is not just a collection title, but a phrase "Browse our .... collection".

 

Is there a way to amend the code so it displays just the collection name, or at least the collection name goes first?

 

Thanks very much!

 

 

 

Accepted Solution (1)
Sheesh_b
Shopify Partner
452 97 107

This is an accepted solution.

Hi @realina 

You just need to replace below code

{{ 'collections.general.link_title' | t: title: collection_title }}

to

{{ collection_title }}

I hope this will solve your issue and it will show the correct Collection Title.

Happy with my solution: Book a free 10 minutes Meeting: BOOK NOW | Try Shopify for $1 for 3 Months: Shopify Trial | Shopify Web Store Developer |
LIKE or mark as ACCEPTED SOLUTION

View solution in original post

Reply 1 (1)
Sheesh_b
Shopify Partner
452 97 107

This is an accepted solution.

Hi @realina 

You just need to replace below code

{{ 'collections.general.link_title' | t: title: collection_title }}

to

{{ collection_title }}

I hope this will solve your issue and it will show the correct Collection Title.

Happy with my solution: Book a free 10 minutes Meeting: BOOK NOW | Try Shopify for $1 for 3 Months: Shopify Trial | Shopify Web Store Developer |
LIKE or mark as ACCEPTED SOLUTION