Getting Rid of the Home and menu link on collection page

Looking at getting rid of the code in the collections

I managed to get rid of the Title on the collections page but cant get rid of title underneath h1 which displays Home(link)/menu (link)

but need to find the code for this; ? ???

To remove the title underneath the H1 tag on your collections page, you’ll need to locate and modify the relevant code in your theme’s Liquid templates. Here’s a general guide to help you find and remove the title:

  1. Access your Shopify admin dashboard.

  2. Navigate to Online Store > Themes.

  3. Click on the “Actions” button next to your currently active theme and select “Edit code”.

  4. In the left-hand sidebar, locate and expand the “Sections” folder.

  5. Look for a file named “collection-template.liquid” or similar. This file controls the layout of the collections page.

  6. Open the file and search for the code that outputs the title you want to remove. It might look something like this:

# {{ collection.title }}
## {{ collection.description }}

Once you’ve found the code responsible for displaying the title, you can either comment it out or delete it entirely. To comment it out, add {% comment %} at the beginning and {% endcomment %} at the end, like this:

{% comment %}
# {{ collection.title }}
{% endcomment %}

this is the code in my theme

{% assign margin = section.settings.margin | split: ‘,’ %}
{% assign margin_top = margin[0] %}
{% assign margin_bottom = margin[1] %}
{% assign padding = section.settings.padding | split: ‘,’ %}
{% assign padding_top = padding[0] %}
{% assign padding_bottom = padding[1] %}

@media only screen and (min-width: 751px) { h1 { display: none; } }
{% assign product_per_page = section.settings.grid | times: section.settings.rows %} {% paginate collection.products by product_per_page %}

{% case section.settings.grid %}
{% when ‘2’ %}
{% assign grid_item_width = ‘two-column’ %}
{% assign imageSize = ‘767x767’ %}
{% when ‘3’ %}
{% assign grid_item_width = ‘three-column’ %}
{% assign imageSize = ‘767x767’ %}
{% when ‘4’ %}
{% assign grid_item_width = ‘four-column’ %}
{% assign imageSize = ‘767x767’ %}
{% when ‘5’ %}
{% assign grid_item_width = ‘five-column’ %}
{% assign imageSize = ‘767x767’ %}
{% endcase %}

{% if section.settings.show_collection_image and collection.image %}
{%- assign img_url = collection.image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' -%} {{ collection.title }} {{ collection.image | img_url: '480x480', scale: 2 | img_tag: collection.title, 'dt-sc-noscript-image' }}

{{ collection.title }}

{% if collection.description != blank %}
{{ collection.description }} {% comment %}

{{ collection.title }}

{% endcomment %}

{% endif %}

{% endif %} {% if section.settings.collections_view_enable or section.settings.collections_sort_enable %}
{% if section.settings.collections_view_enable %} {% render 'collection-mode', grid_item_width: grid_item_width %} {% endif %}

{% if section.settings.collections_sort_enable %}
{% render ‘collection-sorting’ %}
{% endif %}

{% endif %}
    {% if collection.products.size > 0 %} {% for product in collection.products %} {% include 'product-grid-item', product: product, imageSize: imageSize %} {% endfor %} {% else %}
  • {{ 'home_page.onboarding.no_products_html' | t }}

  • {% endif %}
{% if paginate.pages > 1 %}
{% include 'pagination', paginate: paginate %}
{% endif %}

{% unless settings.collection_sidebar_use == ‘full-width’ %}
{% include ‘collection-sidebar’ %}
{% endunless %}

{% endpaginate %}

{% for block in section.blocks %}
{% case block.type %}
{% when ‘carousel’ %}

{% endcase %}
{% endfor %}

{% schema %}
{
“name”: “Collection Page”,
“class”: “main-collection-template”,
“settings”: [
{
“type”: “checkbox”,
“id”: “full”,
“label”: “Show Full width”
},
{
“type”: “checkbox”,
“id”: “spacing_both_ends”,
“label”: “Enable Right & Left Spacing (Works only on Fullwidth)”,
“default”: false
},
{
“type”: “text”,
“id”: “padding”,
“label”: “Style value (Padding)”,
“default”:“0,0”,
“info”:“Top(px),Bottom(px)”
},
{
“type”: “text”,
“id”: “margin”,
“label”: “Style value (Margin)”,
“default”:“0,0”,
“info”:“Top(px),Bottom(px)”
},
{
“type”: “checkbox”,
“id”: “show_collection_image”,
“label”: “Show collection image”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “collections_sort_enable”,
“label”: “Enable collection sorting”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “collections_view_enable”,
“label”: “Enable collection view”,
“default”: true
},

{
“type”: “select”,
“id”: “grid”,
“label”: “Products per row”,
“default”: “4”,
“options”: [
{
“value”: “2”,
“label”: “2”
},
{
“value”: “3”,
“label”: “3”
},
{
“value”: “4”,
“label”: “4”
},
{
“value”: “5”,
“label”: “5”
}
]
},
{
“type”: “select”,
“id”: “rows”,
“label”: “Rows per page”,
“default”: “3”,
“options”: [
{
“value”: “2”,
“label”: “2”
},
{
“value”: “3”,
“label”: “3”
},
{
“value”: “4”,
“label”: “4”
},
{
“value”: “5”,
“label”: “5”
}
]
}
],
“blocks”: [
{
“type”: “image”,
“limit”: 1,
“name”: “Image”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Title”,
“default”: “Heading”
},
{
“type”: “image_picker”,
“id”: “image”,
“label”: “Image”
},
{
“type”: “text”,
“id”: “link_text”,
“label”: “Link Text”,
“default”: “Shop Now”
},
{
“type”: “url”,
“id”: “link”,
“label”: “Link”
}
]
},
{
“type”: “carousel”,
“name”: “Product Carousel”,
“limit”: 1,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”
},
{
“type”: “collection”,
“id”: “collection”,
“label”: “Collection”
},
{
“type”: “range”,
“id”: “limit”,
“min”: 1,
“max”: 5,
“step”: 1,
“label”: “Limit”,
“default”: 5
}
]
},
{
“type”: “collection”,
“name”: “Product List”,
“limit”: 1,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”
},
{
“type”: “collection”,
“id”: “collection”,
“label”: “Collection”
},
{
“type”: “range”,
“id”: “limit”,
“min”: 1,
“max”: 5,
“step”: 1,
“label”: “Limit”,
“default”: 2
}
]
},
{
“type”: “menu”,
“name”: “Menu”,
“limit”: 1,
“settings”: [
{
“type”: “text”,
“id”: “filter_title”,
“label”: “Title”,
“default”: “Custom Menu”
},
{
“type”: “link_list”,
“id”: “linklist”,
“label”: “Menu”
}
]
},
{
“type”: “collection_filter”,
“name”: “Collection Filter”,
“limit”: 1,
“settings”: [
]
}
]
}
{% endschema %}