Adding a subtitle on the Collections List

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!

Hi @jaba23

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

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.

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

{{ 'collections.general.all' | t }}

{{ "This is the description of this page" | t }}

Not sure if this is the correct or best way to do it. But it worked.

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.