I have the Savia theme which is no longer being supported by the developer. The search bar shows up on the top right-hand corner of the page, so I was thinking of adding the script Google provides when creating a custom search bar right where it's at.

Location of Search Bar on site

I'm not entirely sure where to put this code in my theme files, nor will it work.

Has anyone done this before? If so, did it work?

Any sort of help is appreciated. Thank you!

  • Do you have a searchform.php in your theme directory? – fuxia Nov 19 '20 at 23:18
  • Yes, you should check Google CSE. Apart from this lot of plugins are available in repositry. – Vivek Nath R Nov 20 '20 at 4:26
  • Start by checking header.php, you will find the search form or the file that contains the form. Then replace the form with the code from Google custom search – hrsetyono Nov 20 '20 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.