The widget search is for the sidebar not the header. Your probably going to have to create a child theme and remove it from the code.
Thread Starter
giec
(@giec)
Hi potentweb, thanks I have already a child theme created, I have done it yesterday. With this in mind, can you tell me where in the code I have to remove it? WHich file?
thanks
It’s not a widget.
The search bar is from the searchform.php. You can simply delete this and the search bar will go away.
Alternatively you can delete the
<?php get_search_form(); ?>
code from your index.php file.
Both of these would get rid of the search bar.(I recommend deleting it from the index.php, just in case you want to use the searchform.php in the future.)
Note: if the <?php get_search_form(); ?> is not in the index.php then it will be in the header.php file instead.
Thread Starter
giec
(@giec)
hi thanks for that, but it doesn’t seem to work for whatever reason.Here’s what I have done. I have copied the index.php file into my child theme folder and then I have modified it by deleting <?php get_search_form(); ?>
Problem is that the search box is still there, is it because I have to reference the new index.php file from somewhere?
thanks
First check its not in your header.php.
If it still is there then have a look at this: http://codex.wordpress.org/Child_Themes
To make sure you are referencing and overriding the parent theme properly. The chances are you’re making a small mistake that you haven’t noticed yet.
Thread Starter
giec
(@giec)
got it, it was also on the header.php as you said, I have removed it from there too and it has now disappeared
thanks
No problem! Have a nice day! 🙂