How can I add categories to blog or add nice filters

AMorris78
Member

I need to add nice filters and nice blog tag pages. How can I customise it. I am using Lynton -> Vertical theme

Not showing post on tag Pages - https://blog.aspirex.uk/tag/information-technology

BLog main page - https://blog.aspirex.uk/

0 Upvotes
1 Accepted solution
Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

Hey @AMorris78

depending on what you're looking for, adding filters might require quite a heavy custom development.

The easiest "filter" would be adding the tag(s) to the blog cards. This can be done in the Blog featured posts module without diving into the code.

 

For a tag page/list, you'll need to create a new blog listing page with/without drag&drop elements and the if tag statement 

 

Basically the layout will look like this (very simple example):

{% if is_listing_view %}
   {# your default blog listing layout and content goes here #}
{% elif tag %}
   {# your tag page specific layout and content goes here #}
{% endif %}

 

if you like, you can add author specific layouts like this:

{% if is_listing_view %}
   {# your default blog listing layout and content goes here #}
{% elif tag %}
   {# your tag page specific layout and content goes here #}
{% elif blog_author %}
   {# your individual author page layout and content goes here #}
{% endif %}

 

and if you like to add a "all" filter and need a dedicated layout/page for displaying all tags differently than the regular listing page, you can do:

{% if is_listing_view %}
   {# your default blog listing layout and content goes here #}
{% elif tag %}
   {# your tag page specific layout and content goes here #}
{% elif blog_author %}
   {# your individual author page layout and content goes here #}
{% elif not simple_list_page %}
   {# if you'd like to add a "all tags" option to the filter system, this is where the layout and content of it should be placed. Can be very similar to the listing_view #}
{% endif %}

 

 

best, 

Anton

Anton Bujanowski Signature

View solution in original post

3 Replies 3
albertsg
Key Advisor

I agree with @Anton, the best you can do is to use tags as filters. 

Unless you have a very solid case/reason to build something on the top of the HubSpot tags to expand the site filtering/categories, I don't recommend doing it, it will quickly become a bit of a nightmare for your developers and you might encounter some limits with certain HubSpot functions that will just complicate the implementation. 

Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

Hey @AMorris78

depending on what you're looking for, adding filters might require quite a heavy custom development.

The easiest "filter" would be adding the tag(s) to the blog cards. This can be done in the Blog featured posts module without diving into the code.

 

For a tag page/list, you'll need to create a new blog listing page with/without drag&drop elements and the if tag statement 

 

Basically the layout will look like this (very simple example):

{% if is_listing_view %}
   {# your default blog listing layout and content goes here #}
{% elif tag %}
   {# your tag page specific layout and content goes here #}
{% endif %}

 

if you like, you can add author specific layouts like this:

{% if is_listing_view %}
   {# your default blog listing layout and content goes here #}
{% elif tag %}
   {# your tag page specific layout and content goes here #}
{% elif blog_author %}
   {# your individual author page layout and content goes here #}
{% endif %}

 

and if you like to add a "all" filter and need a dedicated layout/page for displaying all tags differently than the regular listing page, you can do:

{% if is_listing_view %}
   {# your default blog listing layout and content goes here #}
{% elif tag %}
   {# your tag page specific layout and content goes here #}
{% elif blog_author %}
   {# your individual author page layout and content goes here #}
{% elif not simple_list_page %}
   {# if you'd like to add a "all tags" option to the filter system, this is where the layout and content of it should be placed. Can be very similar to the listing_view #}
{% endif %}

 

 

best, 

Anton

Anton Bujanowski Signature
BérangèreL
Community Manager
Community Manager

Hi @AMorris78 and welcome, we are thrilled to have you here! 🤗

Thanks for reaching out to the HubSpot Community!

Here is an article "Create and manage blog tags" that might be of interest.

Now, let's consult our Top Experts: Hi @WesQ@Anton and @HKoch do you have suggestions to help @AMorris78, please?

Thanks so much and have a wonderful day! 🌞
Bérangère





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes