Customizing category pages - adding a hero | Community
Skip to main content

Customizing category pages - adding a hero

  • December 10, 2020
  • 1 reply
  • 0 views

I've looked through the post already about customizing category pages and it is 5 years old and no help. So far none of the methods on that page that I've tried have worked. I want to add an individual hero image for each category to the category page template. Can I even do that, or will I need a new template for each category page? I'm using the Copenhagen theme and haven't changed any of the templates yet. 

 

1 reply

Christopher15

Hi Jason, if you're on Guide Enterprise then you can create separate category templates for each of your categories. If not you might be able to achieve some variation using handlebars in your templates. For example:

{{#is category.id 201572803}}
<div class='hero image-1'>
...
</div>
{{else}}
<div class='hero image-2'>
...
</div>
{{/is}}

This gives you some flexibility.