Collection List | Changing Collections Link Title

Solved
realina
New Member
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)

Accepted Solutions
Sheesh_b
Shopify Partner
233 50 59

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.

Shopify Web Store Developer | Founder of Impulsebyte.com | I build websites into reality for people on Shopify. Connect For Customization sheesh@impulsebyte.com
LIKE or mark as ACCEPTED SOLUTION

View solution in original post

Reply 1 (1)
Sheesh_b
Shopify Partner
233 50 59

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.

Shopify Web Store Developer | Founder of Impulsebyte.com | I build websites into reality for people on Shopify. Connect For Customization sheesh@impulsebyte.com
LIKE or mark as ACCEPTED SOLUTION