Removing Collections Title on Collection Page

Hi

I’m trying to hide the Collections Title on the Collection Page. If I do not select the Collection’s Image then it displays the Title.

I’ve looked at previous solutions for Debut theme and some others but none of them seem to work on my Theme Modular

The collection template has this code:

{%- if show_banner and banner_image -%}
{%- render ‘banner’,
image: banner_image,
height: section.settings.banner_height,
transparent_header: true,
heading: collection.title,
text: collection.description,
text_position: section.settings.banner_text_position,
image_position: section.settings.image_position,
color_text: section.settings.banner_color_text,
color_overlay: section.settings.banner_color_overlay,
overlay_opacity: section.settings.banner_overlay_opacity,
unique: section.id
-%}
{%- else -%}

{{ page_title }}

{%- unless collection.description == blank -%}

{{ collection.description }}
{%- endunless -%}
{%- endif -%}

Many thanks

Johnathan

Hello @JohnathanC ,

Replace this part of code

# {{ page_title }}

with this one

{% if collection.image %} {% else %} # {{ page_title }} {% endif %}

Thanks

Wow. Thank you @Guleria

That worked perfectly and I really appreciate it.

I’ll keep your details for when I need to hire someone for some large customisations if that is OK

Thanks again

John

1 Like