Remove Product Name From Featured Products On Top of Homepage Only

Topic summary

A user wants to hide product names from the featured products section on their homepage only, as their theme lacks a built-in toggle for this customization.

Two solutions were proposed:

Solution 1 (Guleria):

  • Edit product-card.liquid in Snippets
  • Replace {{ product.title }} with conditional code:
{% if template == "index" %}
{% comment %} add something if you want {% endcomment %}
{% else %}
{{ product.title }}
{% endif %}

Solution 2 (ayan_ali):

  • Edit featured-collection.liquid in Snippets
  • Replace {{ product.title }} with:
{% unless template == "index" %}
{{ product.title }}
{% endunless %}

Both approaches use Liquid template conditionals to check if the current page is the homepage (template == "index") and conditionally hide the product title. The discussion remains open with no confirmation of which solution was implemented.

Summarized with AI on November 16. AI used: claude-sonnet-4-5-20250929.

Hello. I would like for the product name to not show on the featured collection only on the featured product section on the top of my home page. The theme doesn’t have a toggle button for this, so I was wondering if there was a way I could code this in and if anyone could instruct me on how to do that. Any help is much appreciated. Thank you! URL https://gyjtms9q8glmc3hb-26215088200.shopifypreview.com

Hey @joshwp ,

Follow these steps:

  1. Go to Online Store → Theme → Edit code

  2. Edit product-card.liquid under Snippet

  1. Search for {{ product.title }}
    Replace it with
    {% if template == “index” %}

{% comment %} add something if you want {% endcomment %}

{% else %}

{{ product.title }}

{% endif %}

Thanks

Follow these steps:

  1. Go to Online Store → Theme → Edit code

  2. Edit featured-collection.liquid under Snippet

  1. Search for {{ product.title }}
    Replace it with

{% unless template == “index” %}
{{ product.title }}
{% endunless %}