Adding Search Box for entire-site content
-
I used the following and, graphically, gives me exactly what I want in my header:
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/"> <div><input type="text" size="put_a_size_here" name="s" id="s" value="Write your search and hit Enter" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/> <input type="submit" id="searchsubmit" value="Search" class="btn" /> </div> </form>
But when I type in anything – my result is “OOPS,,,Page cannot be found”
How do I ammend the code to search the “Products” page of the site for the specific word I type?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding Search Box for entire-site content’ is closed to new replies.