Skip to main content
Closed

Changing the placeholder text in Search Form

Related products:Freshdesk
  • Jun 22, 2015 5:36 PM UTC
  • 7 replies
  • 78 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
  • Jun 23, 2015 6:21 PM UTC

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


  • Community Debut
  • May 30, 2017 4:34 PM UTC

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


  • Author
  • Apprentice
  • May 30, 2017 5:38 PM UTC

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 10:36 PM UTC

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
  • Dec 15, 2017 10:59 AM UTC

Also on our portal this doesn't work..


Any update?!


  • Community Debut
  • Dec 15, 2017 11:56 AM UTC

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