Change the "Enter your search term here..."

  • 29 September 2020
  • 3 replies
  • 175 views

What's the best method to change the "Enter your search term here.." to something else? I'm assuming it's somewhere under the portal pages code, but I can't find it. Can someone point me in the right direction? :)



3 replies

​​​​​What's the best method to change the "Enter your search term here.." to something else? I'm assuming it's somewhere under the portal pages code, but I can't find it. Can someone point me in the right direction? :)

 

 

 

 

Badge +1

I cam here looking for this answer for Freshdesk, and since it hasn’t been solved. 

I did it myself, go to Admin → Portal → Customization → Pages → Portal home 

add this code 

 

          <script>

            jQuery(document).ready(function() {

              jQuery("#searchInput").attr("placeholder", "Search for an answer to your IT problem..");

            });

          </script>

 where Search for an answer to your IT problem.. has changed the default Enter your search term here..

Badge +1

Oh and on the Pages → Layout →  Head you needed this too:

 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>

Reply