Hide the Default Search Box

Maybe you’d prefer to have a search field webpart, or just don’t want to have the option readily available on the page, or have other webparts and functions on the page that will be utilizing and connected to search results.

It could present a problem if a user inputs information into default search box, they may be redirected away from your site/page. ┬áProbably best to hide it…

Want to hide the Search bar on a SharePoint page?

Drop this code in:

<style>
.ms-mpSearchBox {
display: none;
}
</style>

Leave a Reply

Your email address will not be published. Required fields are marked *