Forums

Search Box on Static Home Page (1 post)

  1. leanda
    Member
    Posted 5 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic