Support » Fixing WordPress » Adding a search function in a blog

  • For the blog http://power-pickers.com/, I’m trying to add a function so that people can search within the blog. I tried using the widget search but it doesn’t seem to work. Can someone direct me to a plugin or widget that will allow people to search?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • does your theme include any search.php or searchform.php files?

    if so, you can call to them
    in header.php I have

    <div id="search">
                      <?php include (TEMPLATEPATH . "/searchform.php"); ?>
             </div>

    (obviously #search is styled in my css)
    which calls to a file called searchform.php which simply includes:

    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>" style="padding:0px 0px 0px 0px; margin:0px 0px 0px 0px">
    					<input type="text"  name="s" id="s" value="<?php echo wp_specialchars($s, 1); ?>"/><input class="input" type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/search.png" value="submit" style="border:0px"/>
    					</form>

    (note that that exact code wouldn’t necessarily work for you, as it references an image, search.png, in my themes images folder)

    the results are displayed in my search.php

    Thread Starter kujoe2002

    (@kujoe2002)

    I am using BFA roundtabs and had to replace the search.php.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding a search function in a blog’ is closed to new replies.