Forums

Add search to a page (1 post)

  1. iaeon
    Member
    Posted 4 months ago #

    How to add a search box to the content area:

    I found another post on this subject with some code which did not quite work but the following seems OK for me in case useful:

    Go to 'code view' on your page or post and add the following -

    <form id="searchform" action="?php bloginfo('url'); ?" method="get">
    <div><input id="s" class="text" type="text" name="s" value="" />
    <input class="submit button" type="submit" name="submit" value="Search" /></div>
    </form>

Reply

You must log in to post.

About this Topic