View Single Post
  #4 (permalink)  
Old 05-16-2008, 06:31 PM
torideaux torideaux is offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
Default

Quote:
Originally Posted by alda View Post
....unless it has something to do with the widgets I'm using, if they override something, etc.

Still grateful for any tips!
Yes, using the dynamic sidebar widgets will over-ride everything after this line:

Code:
<?php
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1)) :
?>
Try putting the code for the search bar *before* the call for the dynamic sidebar, like this:

Code:
 
<div id="sidebar_1" class="sidebar">
<ul class="sidebar_list">

<li class="widget">
<h2>Search This Site</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</li> 

<?php
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1)) :
?>

Alternatively, you can install a plugin to run php, plug the search code into it, and move it around like any other widget. I use Samsarin PHP Samsarin PHP Widget — Samsarin and find it does a nice job.

Hope it works this time!
Reply With Quote