Change placeholder text for wordpress search box

Change placeholder text for wordpress search box

Change placeholder text for wordpress search box

Today we will learn how to Change placeholder text for wordpress search box.

Just Add the below code to the functions.php in your wordpress theme and all done. Placeholder text can be change/Replace to any text also Search button can be change to anything.

We hope this article helped you learn Change Placeholder Text for WordPress Search Box.

Additional Reading

Md. Elias
  • Clarisse
    Posted at 08:15h, 24 February Reply

    it worked. Tks!

  • Peter
    Posted at 09:42h, 02 March Reply

    Tried this, but it did not work. How old is this article? (It says “05 Dec” but doesn’t say what year.)

    • Md. Elias
      Posted at 00:21h, 03 March Reply

      Hello Peter,
      Its posted on December 5, 2017. sorry to hear its not working, would you like to tell me where you used this code?


  • David
    Posted at 15:16h, 06 April Reply

    Hi there, it works fine for me but the button “Go” is misplaced… It appears way above the input…

    • Md. Elias
      Posted at 15:24h, 06 April Reply

      Thanks for your reply. Would you like to share a screenshot pls.

  • David
    Posted at 15:30h, 06 April Reply

    Ok, is this link works?

  • David
    Posted at 13:40h, 09 April Reply

    Any idea ?

    • Md. Elias
      Posted at 13:59h, 09 April Reply

      Hello Devid,
      I have checked its a css issue. for fixing need to add some css.

  • David
    Posted at 14:05h, 09 April Reply

    Ok, I’ll lokk into it.

    • Md. Elias
      Posted at 14:22h, 09 April Reply

      Welcome, if you stuck knock me. i will fix it

  • Mike
    Posted at 03:03h, 28 May Reply

    this was an awesome help. Thank you

  • Temitope
    Posted at 20:36h, 27 June Reply

    you are the best, and God sent.

    Please send me I need another help
    I have a members plugin
    it creates user
    My question is How do I fetch the users from my wordpress database to a front-end table in wordpress.
    I can get this done easily in php but in wordpress I am stuck.
    Would appreciate if I can learn from your wealth of experience.
    Thank You

  • Md Sohel Rana
    Posted at 15:48h, 18 September Reply

    A search box plugin named “Ivory search”. Can I replaced the search box placeholder using this code..? Please need help. It’s urgent…! I used search box in the top menu bar

    • Md. Elias
      Posted at 16:06h, 18 September Reply

      sorry to say this code work for wordpress search only. but could you sent the link so i can check

  • Hadi Aryagohar
    Posted at 13:56h, 20 November Reply

    It worked for me, too.
    Thanks a million!

    • Md. Elias
      Posted at 23:26h, 20 November Reply

      Sound really good…

  • Pawan Kumar
    Posted at 11:20h, 13 May Reply

    this was an awesome help. Thank you

  • Haider Jamal
    Posted at 23:28h, 18 July Reply

    can this code work for a blogger

    • Md. Elias
      Posted at 03:06h, 19 July Reply

      Hello Haider Jamal,
      Sorry to say its will work only for wordpress…

  • Hja Guru
    Posted at 23:28h, 18 July Reply

    nice sir i will try this

  • Ricardo Garcia Duarte
    Posted at 02:14h, 08 August Reply

    What if I want to hide the submit button? Any suggestions?

    • Md. Elias
      Posted at 01:07h, 18 August Reply

      Sorry for lare reply, i was in vacation that why could not reply in time.
      You can add this css to your theme. just go to
      Appearance->Customize->Additional CSS

      #searchsubmit {
      display: none !important;

      Hit on Publish..Done
      Let me know if its not work


Post A Comment