Solved

How to display blog category in blog category title?

wq_IntDev
Shopify Partner
12 0 1

Is it possible to have the blog category added in the blog title using liquid?

Screen Shot 2020-12-02 at 1.53.38 pm.png

Accepted Solution (1)

gina-gregory
Shopify Expert
742 51 211

This is an accepted solution.

Yes. You can do it like this:

<h1>
  {{- blog.title }}
  {% if current_tags %} | {{ current_tags | join: ' + ' }}{% endif -%}
</h1>

View solution in original post

Reply 1 (1)

gina-gregory
Shopify Expert
742 51 211

This is an accepted solution.

Yes. You can do it like this:

<h1>
  {{- blog.title }}
  {% if current_tags %} | {{ current_tags | join: ' + ' }}{% endif -%}
</h1>