Search Box on Static Home Page
-
Hi
I’ve got a static home page set up with a mini loop bringing posts into the page.
I’ve added a search box to my header.php which works fine on all my other pages but not on the static home page which is outside of the main wordpress directory.
I’m using this code:
<!– // <label for=”s”><?php _e(‘Search:’); ?></label> –>
<form id=”searchform” method=”get” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”>
<div>
<input type=”text” name=”s” id=”s” size=”15″ /> <input type=”submit” value=”<?php _e(‘search’); ?>” />
</div>
</form>Would be so grateful for any help to get this to work.
Thanks
- The topic ‘Search Box on Static Home Page’ is closed to new replies.