By runeveryday on
when i put the code <?php print $search_box; ?> in block, there is no search box display. i have checked the radio button in the theme config setting,and enabled the search module. but when i use the above code in the page.tpl,the search box can see on the front page. any tips would be appreciated!
Edited by: VM; Moved to appropriate forum
Comments
Default block
dafault block is already available in blocks page. Enable that block in desired area and you will see the search block.
but if i want to use the code
but if i want to use the code to hardcode it in the page.tpl.php?why it can't display ?
=-=
administer -> themes -> configure the theme in use.
locate the search box at the theme layer and enable by checking the proper checkbox. If your theme supports it. It should show whereever enable in the theme.
search_box and search_block not being quite the same thing.
i have enable it,the theme
i have enable it,the theme not supports it ,but i want to use
<?php print $search_box ?>to hardcode in page.tpl.php and in the configure the theme enable the search box ,why can't display the search box.