HubSpot tends to modify websites’ form fields, including the search field. That’s why the Advanced installation method should be used to use AddSearch on a HubSpot website.

Advanced installation method consists of two steps:

1. Add a search field to your page template. For example:

<input type="text" 
  style="height: 30px; font-size: 12px; cursor: auto;
    background-color: rgb(255, 255, 255);
    background-image: url( );
    background-repeat: no-repeat;
    background-position: 95% 50%;" />

2. Add your JavaScript snippet to the page footer from HubSpot’s Page publishing -> Site Footer HTML fields section.

<script src=""></script>

Was this helpful?

Need more help?

We’re always happy to help with code or other questions you might have. Search our documentation, contact support, or connect with our sales team.