HubSpot CMS Site Search Input Module Override


HubSpot CMS Site Search Input Module Override

HubSpot provides a default module to perform a site search. By default it searches website pages and blog posts. But what if you want to override this and only search blog posts? Below is an embed snippet to help you do just that.

Usage Snippet Verbose Example

{% module 'site_search' path='@Hubspot/search_input',
label='Search',
content_types={
'website_pages': False,
'landing_pages': False,
'blog_posts': True,
'knowledge_articles': False
},
include_search_button=True,
placeholder='placeholder',
field_label='label'
no_wrapper=True %}

Written by: Jake Lett
I share digital marketing tips and HubSpot tutorials to help marketers and business owners grow their business.

Related posts

Tags: ,

Want to Get Email Updates of New Articles?

Join My Email Newsletter