Adding a subtitle on the Collections List

jaba23
Tourist
9 0 1

Hello,

I need help adding a subtitle to my collections page. If I go to my collections I only have the list of collections, but I want to add a text or a subtitle to that page.

https://www.normalem.com/collections

Is this possible? Do I need to edit the code? Is there a simple line of code I could add to do this?

Thanks!

0 Likes
JHKCreate
Shopify Partner
2244 373 500

Hi @jaba23 

This is indeed doable, but would require custom coding here to get this done. Where would the subtitle be sourced from?

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
0 Likes
jaba23
Tourist
9 0 1

Thanks @JHKCreate 

I'm not sure where to source the subtitle. I thought it would be straight in the code since it's going to be specific for that page.

I tried assigning a variable called collection_subtitle on the header section of the code. But now I'm dealing with design issues since is too close to the Title.

I'm not sure if I answered your question.

0 Likes
jaba23
Tourist
9 0 1

@JHKCreate I was able to solve it by laying with the code and adding this:

  <header class="section-header">
          <h1 class="section-header__title h2">{{ 'collections.general.all' | t }}</h1>
<div class="section-header__description rte">
        {{ "This is the description of this page" | t }}
</div>
        </header>
 
Not sure if this is the correct or best way to do it. But it worked.
0 Likes
jaba23
Tourist
9 0 1

Ok, it didn't work because I used the Translation Filter.

But what that filter did was also add a margin-top: 20px, that was exactly what I was looking for.

I just need to figure out how to add that margin without adding the translation filter.

0 Likes