Removing title from Collection. Instructions listed on previous posts do not match code in Template

Solved
ChyllCBD
Tourist
7 0 1

Hello, I am trying to remove the "title" words from my collection page, but none of the previous posts for help match my code. All the suggests state to edit the Assets>theme.scss.liquid, but my code file states Assets>theme.css.

Can anyone help?

0 Likes

hi @ChyllCBD , the file can be different for different themes, adding custom css to theme.css file can work too

Visit my Shopify Youtube channel to learn how to code your Shopify store and fix various coding issues on Shopify.(subscribe if you like it :)).
Glad to help out and wish your Shopify store great success.
0 Likes

The html code for the collection title resides in 2 locations in the collection-template.liquid file. The first location is visible when a collection has an image specified for the collection. The second location is visible when there is no image specified. To hide the titles, I comment them out as you can see below.

The first location is on line 41:

 

        <div class="collection-hero__title-wrapper">
          <h1 class="collection-hero__title page-width">
              <span class="visually-hidden">{{ 'collections.general.collection_label' | t }}: </span>
              <!-- {{ collection.title }} -->
          </h1>
        </div>

 

The second location is on line 42:

 

          <h1>
              <span class="visually-hidden">{{ 'collections.general.collection_label' | t }}: </span>
              <!-- {{ collection.title }} -->
          </h1>

 

 

 

 

 

If my response was helpful please Like and Mark As Solution.
0 Likes
ChyllCBD
Tourist
7 0 1

I apologize, I do not have code experience and am unable to decipher correctly your pictures. Are you deleting out lines? Without the line numbering included I am unsure what change is occurring between the first and second pictures. Can you provide more detail on what you commented where? It looks to me like you deleted text out of line 39 and removed line 43?

0 Likes
dmwwebartisan
Shopify Partner
4508 1013 1300

@ChyllCBD 

Please share your website URL and password if any. I will check and provide a solution here.

Thanks!

If helpful then please Like and Accept Solution.
Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Advanced Shopify Page Builder to customize your pages - check here PageFly App
0 Likes
ChyllCBD
Tourist
7 0 1

The website is www.chyllcbd.com, I disabled the password temporarily for you to take a peek at the HTML. Thank you!

dmwwebartisan
Shopify Partner
4508 1013 1300

@ChyllCBD 

Can you provide a screenshot?

I couldn't see where the text is.

Thanks!

If helpful then please Like and Accept Solution.
Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Advanced Shopify Page Builder to customize your pages - check here PageFly App
0 Likes

Here are the changes to make to file collection-template.liquid 

Line 41:

From:

{{ collection.title }}

To:

<!--  {{ collection.title }} -->

Line 60:

From:

{{ collection.title }}

To:

<!--  {{ collection.title }} -->

 

If my response was helpful please Like and Mark As Solution.
0 Likes

This is an accepted solution.

Sorry. I messed up the line numbers should be line 40 and line 60.

If my response was helpful please Like and Mark As Solution.
0 Likes
ChyllCBD
Tourist
7 0 1

That worked! Thank you!

0 Likes