---
schema_version: "1"
id: 43734819b561a35cc8340e10b999844d2181afecba9c477b3ea07508a81ce44f
title: Add the Global Search Box to Your Customized Experience Cloud Site HTML Header
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/experience/264-0-0/networks_custom_search_box.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.networks_custom_search_box.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 475f3a4568dcae7b6c7b9483e9ae1eaccb342e6cdc74ab1e0d199b4eadde8d18
description: If you customize your Experience Coud sites with an HTML header, you hide the global search box. To take advantage of this search functionality, add a form to your custom header.
products:
  - Experiences
release: "264"
---
# Add the Global Search Box to Your Customized Experience Cloud Site HTML Header

If you customize your Experience Coud sites with an HTML header, you hide the global search box. To take advantage of this search functionality, add a form to your custom header.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

You can add the global search box to both Experience Builder and Salesforce Tabs + Visualforce sites.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/images/icon_note.png)

Note You are automatically redirected to a Classic UI, when configuring this feature in an Experience Builder site.

1. In your customized HTML header, embed a form similar to this one.
    
    ```html
    <form action="/<site name>/search/SmartSearch" method="get">
      <input id="phSearchInput" type="text" name="str"/>
      <input type="submit" value="Search"/>
    </form>
    ```
2. Replace <site name> with the unique value you used for the URL when creating the Experience Cloud site.
    
    For example, if you entered customers as the unique value for your site URL, the form would look like this example:
    
    ```html
    <form action="/customers/search/SmartSearch" method="get">
      <input id="phSearchInput" type="text" name="str"/>
      <input type="submit" value="Search"/>
    </form>
    ```

With global search from your internal org, you can get uneven results when searching for an Experience Cloud site User record. Here’s why and what you can do about it. Each site has a unique network ID. When you create a user through **Contact record** | **Create External User**, the new User record is assigned to a site's network ID.

Global search looks for records in the internal org, which has a different network ID than the site. A global search doesn't search inside sites. Since the User record is associated with a site network ID, global search doesn't return results for that record.

The workaround is to create User records in the internal org, and then associate the records to a site. You can associate an internal User record to a site by linking the internal record to a Contact record. After you forge the link, you can find the User record through global search. The User record's network ID is now associated with the internal org.