DIY Themes Forums  

Go Back   DIY Themes Forums > Thesis Theme > Thesis Customization Tips
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2008, 10:28 PM
Junior Member
 
Join Date: May 2008
Posts: 20
Default Search form won't show up in sidebar

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:
<li class="widget">
<h2>Search This Site</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
from the left sidebar to the right, but it refuses to show up.

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
Reply With Quote
  #2 (permalink)  
Old 05-15-2008, 05:08 PM
Junior Member
 
Join Date: Apr 2008
Posts: 16
Default

Did you figure it out, Alda?

The code you copied here didn't include the </li> closing tag. I was going to suggest that you check for that. But the search form is showing on both sites for me! Problem solved?

Tori
Reply With Quote
  #3 (permalink)  
Old 05-16-2008, 12:31 AM
Junior Member
 
Join Date: May 2008
Posts: 20
Default

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:
<div id="sidebar_1" class="sidebar">
<ul class="sidebar_list">
<?php
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1)) :
?>

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

<li class="widget">
<h2>Recent Entries</h2>
<ul>
<?php
wp_get_archives('type=postbypost&limit=10&format=h tml');
?>
</ul>
</li>
Like I said - the code is exactly the same as in the sidebar on my dummy site: — The Iceland Weather Report, so I don't understand what the problem is, unless it has something to do with the widgets I'm using, if they override something, etc.

Still grateful for any tips!
__________________
www.icelandweatherreport.com
Reply With Quote
  #4 (permalink)  
Old 05-16-2008, 06:31 PM
Junior Member
 
Join Date: Apr 2008
Posts: 16
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
  #5 (permalink)  
Old 05-16-2008, 07:27 PM
Junior Member
 
Join Date: Apr 2008
Posts: 13
Default

http://diythemes.com/forums/troubles...arch-blog.html
Reply With Quote
  #6 (permalink)  
Old 05-18-2008, 09:14 PM
Junior Member
 
Join Date: May 2008
Posts: 20
Default

THANK YOU, Tori! Finally!!
__________________
www.icelandweatherreport.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:33 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0