Skip to main content
Closed for Voting

Changing the placeholder text in Search Form

Related products:Freshdesk
  • June 22, 2015
  • 7 replies
  • 69 views

Hello,


Currently the placeholder text seen in our Search Form snippet is, "Enter your search term here...".  Is it possible to change this text and if so, where would one make this change?

Thanks,
Matt

7 replies

Hi Matt,


The search form snippet can be edited from help desk rebranding.

Go to Admin > Help desk rebranding > layout page Tab > portal layout Tab 

And in the header section add the below line-

jQuery(".hc-search-input input").attr("placeholder","your text here");


Hope this helps.


  • Author
  • Apprentice
  • June 23, 2015

Thank you, we were able to get that to work by enclosing it in a <script> tag.


  • Community Debut
  • May 30, 2017

Hi, does this still work? I tried it on our portal and the text remained the same. 


  • Author
  • Apprentice
  • May 30, 2017

Yes, this is still functioning correctly in our instance of Freshdesk.

We added the following to our Header file:

 

<script>
 jQuery(".hc-search-input input").attr("placeholder","Search the Knowledge Base");
</script>

 




  • Community Debut
  • May 30, 2017

I added it to our portal (https://supportframe.stages-link.com/en/support/home) and it still says "Enter your search term here.."


Tried it in a few different places within the header section, but none seemed to result in any change. The script is in there when you view the source, just not doing anything. 


  • Community Debut
  • December 15, 2017

Also on our portal this doesn't work..


Any update?!


  • Community Debut
  • December 15, 2017

@AmyI now placed the code in the Portal page itself and that does work. :-)