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 :)
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 :
<?php
include (TEMPLATEPATH . '/searchform.php');
?>
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…
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
… to my l_sidebar.php file and uploaded it… however, nothing has changed.
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.
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.
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.
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 * ************************************************/