Deleting Search Box from theme?
-
I am trying to remove my theme’s default search function (which is at the top of the screen) and replace it with Google’s search in my sidebar (the theme I’m using is FreshBlue Idea).
So far I have,
Deleted the following code in my header.php page:
<!– Here’s menu bar –>
<div id=”search”>
<form method=”get” id=”searchform” action=”<?php bloginfo(‘home’); ?>/”>
<input type=”text” value=”<?php the_search_query(); ?>” name=”s” id=”s” value=”type here…”/></form>
</div>This deleted the searching function, but the search box’s “image” is still there (like it still shows the box, but you just can’t click on it.)
I also tried deleting this code from my searchform.php page:
<form method=”get” id=”searchform” action=”<?php bloginfo(‘home’); ?>/”>
<input type=”text” value=”search” onblur=”if (this.value == ”) {this.value = ‘search’;}” onfocus=”if (this.value == ‘search’) {this.value = ”;}” name=”s” id=”s” /></form>But this didn’t seem to do anything, any help would be appreciated.
- The topic ‘Deleting Search Box from theme?’ is closed to new replies.