1. Kayako Download customers: we will continue to develop and support Kayako Download beyond July 2017, alongside the new Kayako for existing customers.

    Find out more.

  2. The forum you are viewing relates to Kayako Classic. If you signed up or upgraded to the new Kayako (after the 4th July 2016), the information in this thread may not apply to you. You can visit the forums for the new Kayako here.

remove search bar from support center startpage

Discussion in 'Using Kayako Classic' started by Tobias Orzegowski, Jan 27, 2015.

  1. Tobias Orzegowski

    Tobias Orzegowski Established Member

    Hi,

    I want to remove the search bar from the support center login page for users that are not logged in. I had a look in the homeindex template but I could't find it in there.

    [​IMG]

    I mean the bar above the cloud thingy.

    Thanks,
    Arnold
     
  2. Gary McGrath

    Gary McGrath Staff Member

    Hi Arnold,

    That is actually within the header template ( Admin CP, templates, templates, expand general )

    In here look for the code:

    Code:
    
      <form method="post" id="searchform" action="<{$_baseName}><{$_templateGroupPrefix}>/Base/Search/Index" name="SearchForm">
      <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>
    
    
    And put a check for user logged in around it, e.g. change to:

    Code:
    <{if $_userIsLoggedIn == true}>
      <form method="post" id="searchform" action="<{$_baseName}><{$_templateGroupPrefix}>/Base/Search/Index" name="SearchForm">
      <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><{/if}>
    
    
    That should do it,

    Gary
     
  3. Tobias Orzegowski

    Tobias Orzegowski Established Member

    and it does ...

    Thanks,
     
  4. Martyn S

    Martyn S Member

    Gary

    Can you remove the big buttons for the Knowledgebase , Newsfeed so the who middle secioon isnt there and everything moves up?
     
  5. bear

    bear Kayako Guru

    He may have moved on.
    Gary McGrath was last seen: Apr 25, 2018
     

Share This Page