Does anyone know how to move the search box in the left navbar to the breadcum area in Garland theme. The search box I'm talking about is the one you can enable under admin/build/themes/settings/garland

In the image below you can see where I want the search box.

http://img167.imagevenue.com/img.php?image=21883_garland_move_search_123...

I guess I have to make some changes in page.tpl.php and in the css. Can someone please help me.

Comments

lenkkivihko’s picture

Search for print $search_box in you page.tpl.php and cut and paste it to the appropriate place.

Trial and error method will help you to find the right place itn the page.tpl.php file.

Harjoituspäiväkirja - www.lenkkivihko.fi

AlanQ’s picture

Similarly, I'm trying to move the search box from the Left sidebar to the Right sidebar.

I've done the following in the Garland file page.tpl.php:

Commented out Line 58
<?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
to remove the search box from the Left sidebar.

Added Line 58 to just below line 85
<div id="sidebar-right" class="sidebar">
to add the search box to the Right sidebar

Commented out what was Line 86
<?php if (!$sidebar_left && $search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
because it should now be redundant

The result is that the search box is now in the Right sidebar when I'm logged in,
but it is back in the Left sidebar when I log out.

I can't think of a new 'trial' to follow my current 'error'. Any ideas?
Thanks
Al

Edit:
It would appear the problem was caused by caching.
Shutting down and re-opening Firefox (actually a complete system re-boot) solved the problem.
So, the post immediately above this would appear to be the correct instructions if, in the Garland theme, you want the search box to be in the Right sidebar instead of the Left :)

judib99’s picture

I followed the directions above exactly but nothing happened. It didn't disapear from the left, it didn't re-appear on the right or top, or near the bread crumbs. I never had 2 search boxes, nothing happened. Which is very frustrating because I am very much a trial and error person. Can anyone shed light on this? If it is a caching thing, how do I clear the cache with out doing something crazy every time like restarting my computer?

Just to re-iterate I am using the garland theme in drupal 5.x and want to move the search box up into the right - not in the header and not in the right side bar, to the right ABOVE the right side bar but below the top row of links (not above which is what happens when you go to admin and set it to header)

Please help!

judib99’s picture

Still trying - I have played and played with the page.tpl.php file and nothing changes. Is there a setting I need to change in the administer blocks area too? Do I set the search box to nothing or to one of the side bars or what? Then change the php file?

Arghhhh!

judib99’s picture

I have tried the code editing instructions above but nothing is working. I think the problem may be all of the different places where you turn the search box on and off. Can someone who has successfully moved their search box in the Garland theme please give me a bit more detail?

Do I turn it off or on in the blocks? Do I turn it off or on in the theme? Do I turn it off or on in the individual Module administration area? Is there code and instructions other than those above I should try?

Thanks!
Judi

SergioGuru’s picture

If you upgrade to Drupal 6 then it's easy:

1. Turn search box off in Themes, Garland, Configure.

2. Enable search box in Blocks and drag it to right sidebar.

That's all.

Anonymous’s picture

I've tried with no success to put the search bar in the header on the top right of the Garland theme. It becomes very messy when I try to insert the search code alongside the site title etc.

Any suggestions would be very welcome.

cheersm
karl

Training and advice in the Midlands, UK
Free directory of UK business networking clubs

chrisnovak’s picture

I was having troubles moving and displaying the search bar, including having problems with getting the "Search box" checkbox in Themes -> configure to stay checked. I could see it on the admin ->site configuration -> blocks preview page, but not when logged out.

Then I realized that you need to set the permissions for search- you need to set who can use the search and who can administer search (which is important of course if you created an administrator role like I did).