I'm trying to make a custom theme for a drupal blog, and I want the search box to appear in the header. To do that, I've put the following code in the page.tpl.php
template file :*
<?php if ($search_box): ?>
<div id="search-box"><?php print $search_box; ?></div>
<?php else: ?>
<h2>Pas de search box</h2>
<?php endif; ?>
But the damn thing won't show up. I did some research on google, and checked the Search module on admin/build/modules
and admin/build/themes/settings/mytheme
, and added the search form to the header in admin/build/block/list/mytheme
. Did I miss something, or did I do something wrong ? Because it's still not working, and beginning to piss me off...
Thanks.
Regards from France ;)
$search_box
with$search_block
, no it doesn't change anything... – Singleaction