Back to ProBlog Support

ninjas8732
ninjas8732

I have two categories, blog and news. On the category page for each category I want to display in an h1 tag BLOG or NEWS, depending on the category selected.

Is there an easy way to do this?

ChadStrat
ChadStrat

Seems there is several ways to do this. You could create a layout for each section chose that when you post wherein the layout has the title. Or you could use twig logic to look at the path and deduce the location. At the component level I would need to add a page property for that to be accessible via twig wherein the logic would be:

{% if filter_type == 'Category' %}
  <h2>{{ filter_value }}</h2>
{% endif %}

Last updated

1-2 of 2