Start a conversation

Disabling Search Bar on Client Support Center

Overview

The "Search" feature can be disabled from the Client Support Center by removing the Search box from the template code.

Process

The "Search box" can be removed by modifying the 'header' template from Admin CP > Templates > Templates > General.

The following code needs to be removed from the 'header' template :

<form method="post" id="searchform" action="<{$_baseName}><{$_templateGroupPrefix}>/Base/Search/Index" name="SearchForm">
<div class="helptitle">
<{if $_baseIndex==t rue}>
<{$_language[pleasetypeyourquestion]}>
<{else}>
<{$_language[pleasetypeyourquery]}>
<{/if}>
</div>
<div class="searchboxcontainer">
<div class="searchbox">
<span class="searchbuttoncontainer">
<a class="searchbutton" href="javascript: void(0);" onclick="$('#searchform').submit();"><span></span>
<{$_language[searchbutton]}>
</a>
</span>
<span class="searchinputcontainer"><input type="text" name="searchquery" class="searchquery" onclick="javascript: if ($(this).val() == '<{$_language[pleasetypeyourquestion]}>' || $(this).val() == '<{$_language[pleasetypeyourquery]}>') { $(this).val('').addClass('searchqueryactive'); }" value="<{if $_baseIndex == true}><{$_language[pleasetypeyourquestion]}><{else}><{$_language[pleasetypeyourquery]}><{/if}>" /></span>
</div>
</div>
</form>
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments