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.

 

Tags:
Md. Elias
elias1435@gmail.com
12 Comments
  • 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?

      Thanks

  • 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? https://ibb.co/kC7EPx

  • 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.
    Thanks.

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

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

  • 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

Post A Comment