![]() |
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I am completely baffled. I've been trying to move the 'search this site' form from my right sidebar to the left one and it isn't working. I copy this code: Quote:
MEANWHILE, I first tried this on my test site that has the same theme and it worked without a hitch, see here: — The Iceland Weather Report. I even tried copying the EXACT CODE from the sidebar.php file on the test site into the sidebar.php file on my regular site, — The Iceland Weather Report (hm, both links show up with the same title when I post this), but the search form just DOES NOT SHOW UP. Even though the code is exactly the same! I am completely mystified. Can anyone please help?? Thank you! Alda
__________________
www.icelandweatherreport.com |
|
|||
|
Hi Tori,
No, alas - I didn't figure it out, and the search form is definitely not present on my main site: — The Iceland Weather Report. I missed the </li> closing tag when I posted this, but it's there. The beginning of the sidebar looks like this: Quote:
Still grateful for any tips!
__________________
www.icelandweatherreport.com |
|
|||
|
Quote:
Code:
<?php
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1)) :
?>
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! |
|
|||
|
|
|
|||
|
THANK YOU, Tori! Finally!!
![]()
__________________
www.icelandweatherreport.com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|