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
Jake Lett is a B2B marketing consultant with over 15 years of experience in the digital marketing industry. He specializes in SEO, HubSpot, and PPC campaign management. Jake has a proven track record of helping businesses increase their online visibility and drive more traffic, leads and sales. He is a Certified Google Ads Specialist and a Certified HubSpot Developer.

Related posts

Tags: ,

Want to Get Email Updates of New Articles?

Join My Email Newsletter