You must be logged in to post Login

Lost Your Password?

Search Forums:


Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Should there be a searchbox?


9:04 pm
November 30, 2007



I uploaded the search_pages.php file to the plugins folder and then "switched it on". Should I add something to my sidebar to make it work / appear there?

 I can´t remember which version I´m using. It´s likea a year old, so I guess it´s an old one 🙂

Any ideas?

1:42 am
December 1, 2007



posts 1125

The search box will appear as defined in your theme.

Check if there is a searchform.php  in your theme. If there is none, copy the searchform.php  from the default theme and "include" it where you need it in the sidebar.php  of your theme with :

  include (TEMPLATEPATH . '/searchform.php');




3:18 pm
December 4, 2007



Thanks! Now it works like a charm. How weird that that file was missing from my theme.  

Very happy. 

2:00 pm
April 24, 2008



Thanks for creating this plugin.

I am having the same problem as noted above. In turn, I am having a difficult time trying to understand your solution. I would greatly appreciate it if you could provide a Dummies Version.

FYI – My theme has a search.php file. I have Search widget option, however, I do not like the way it appears / functions. Hence why I am trying to utilize your plugin / widget.

I have dowloaded your file search_pages.php and uploaded it to my Plugins directory on my server. In turn, I have activated your Plugin… however, it is not appearing on my blog.

I tried adding the code
you suggested above…

include (TEMPLATEPATH . '/searchform.php');

… to my l_sidebar.php file and uploaded it… however, nothing has changed.

Any suggestions would be greatly appreciated.

3:06 pm
April 24, 2008



posts 1125


There could be a compatibility issue with your theme. Can you temporarily replace the searchform.php of your theme by the one from the default theme and try again ?

If this does not help, let me know what theme you are using and under what version of WordPress.

6:31 pm
April 24, 2008



Thanks for your quick response.

I tried renaming search_pages.php to search.php and replacing the original search.php file. In turn, I uploaded the file to the server and added the widget to my sidebar. However, interestingly the search GUI looks the same as the original. Therefore I will assume I did something wrong.

Any other suggestions? I am using Wordpress 2.5 and the Nightlife theme.

I will leave the current search widget online so you can see how poor it looks.

Thanks again.

12:23 am
April 25, 2008



posts 1125

search_pages.php (from the plugin) is not supposed to replace search.php (from the theme):

  • searchform.php (from the theme) adds a searchbox to the page;
  • search.php (from the theme) creates a page with search results;
  • search_pages (from the plugin) changes the way WordPress searches.

In my previous post, I suggested that you replace searchform.php in your /wp-content/themes/nightlife/ directory by the version of searchform.php that you will find in your /wp-content/themes/default/ directory.

Does this work better ?

12:38 pm
April 25, 2008



I found the search form code in my Nightlife theme… it is hidden in the Style.css file. See code below.

I realize my question is above an beyond your plugin at this point, however I would greatly appreciate it if you could tell me how to get rid of the "Search" button on my search GUI.. alternatively, I would like to simply have the text "Search" in my input field… and require people to hit enter to process the search. This would make it look a lot cleaner.

In addition, there are two little black dots to the left of my input field and two little black dots below the current "Search" button… any idea how I can rid of these?

Thanks again.

* Search Form *

#searchdiv {
margin: 0px;
padding 0px;

#searchform {
margin: 0px;
padding: 0px;
overflow: hidden;

#s {
width: 190px;
background: #EFEFEF url(images/search.gif);
color: #333333;
font-size: 11px;
font-family: Verdana, Helvetica, Sans-Serif;
padding: 3px;
margin: 8px 0px 0px 10px;
border: 1px solid #C0C0C0;

7:39 am
April 26, 2008



posts 1125

Good to see that Search Pages now works in your blog !

In order to make the word "Search" appear within the search bar, you need to add value="Search" within the "input" line of the search form.

The existing "Search" button will disappear if you remove the "input" line containing type="submit" value="Search" .

And I don't know from where the two little black dots are coming.

These new questions are out of the scope of this forum, but I hope that my partial answers will help you anyway.

About the Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
10 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710


There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)