CMS Development

JosefinaT
参加者 | Solutions Partner
参加者 | Solutions Partner

Blog list page as tabs with categories on each tab

解決

I need to create a tabbed menu for the blog listing page with each tab pulling in different blog categories.

Something similar to this: https://www.w3schools.com/howto/howto_js_tabs.asp

 

Or this image below may help as well. Are there examples online for this?

Screen Shot 2019-12-04 at 10.42.04 AM.png

0 いいね!
1件の承認済みベストアンサー
DanielSanchez
解決策
キーアドバイザー | Platinum Partner
キーアドバイザー | Platinum Partner

Blog list page as tabs with categories on each tab

解決

Hi @JosefinaT ,

 

I use this code to create one menu of tags in my blog HubSpot:

{% set my_topics = blog_topics('default', 250) %}
<ul>
{% for item in my_topics %}
<li><a href="{{ blog_tag_url(group.id, item.slug) }}">{{ item }}</a></li>
{% endfor %}
</ul>

Look the result without CSS:

preview.PNG

 

Now, u can create the style to configure the layout you need.  Look how the code above stayed, after i configure the CSS in one template that i created:

my-blog.PNG

 

Did this post help solve your problem? If so, please mark it as a solution.

Best regards! 🙂

元の投稿で解決策を見る

2件の返信
DanielSanchez
解決策
キーアドバイザー | Platinum Partner
キーアドバイザー | Platinum Partner

Blog list page as tabs with categories on each tab

解決

Hi @JosefinaT ,

 

I use this code to create one menu of tags in my blog HubSpot:

{% set my_topics = blog_topics('default', 250) %}
<ul>
{% for item in my_topics %}
<li><a href="{{ blog_tag_url(group.id, item.slug) }}">{{ item }}</a></li>
{% endfor %}
</ul>

Look the result without CSS:

preview.PNG

 

Now, u can create the style to configure the layout you need.  Look how the code above stayed, after i configure the CSS in one template that i created:

my-blog.PNG

 

Did this post help solve your problem? If so, please mark it as a solution.

Best regards! 🙂

JosefinaT
参加者 | Solutions Partner
参加者 | Solutions Partner

Blog list page as tabs with categories on each tab

解決

Thanks! That worked!