Changing search form size not working

Five Point Palm... - February 7, 2008 - 17:46
Project:Zen
Version:5.x-1.0-beta2
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

When I try to change the search form size="15" to size="10" in file search-theme-form.tpl.php nothing happens. Using firebug this is where it tells me the code is. Is there another file that I have missed that I need to change to get the desired effect?

#1

JohnAlbin - February 8, 2008 - 12:47
Status:active» active (needs more info)

Do you follow the directions for adding a themed search form to your sub-theme?

From a sub-theme's template.php file:

/**
* Override the Drupal search form using the search-theme-form.tpl.php file.
*/
/* -- Delete this line if you want to use this function
function phptemplate_search_theme_form($form) {
  return _phptemplate_callback('search_theme_form', array('form' => $form), array('search-theme-form'));
}
// */

#2

Five Point Palm... - February 12, 2008 - 09:44

Yes I have done this and it does resize search form with the code:

<?php if ($search_box): ?>
            <div id="search-box">
              <?php print $search_box; ?>
            </div> <!-- /#search-box -->
          <?php endif; ?>

But when I go to Home › Administer › Site building › Blocks

Then add the Search form to the left sidebar:

The search form on the left sidebar does not resize.

#3

kdebaas - February 12, 2008 - 19:08
Status:active (needs more info)» fixed

The search-box is not the same as the search form that can be added in a Block.

The SEARCH THEME FORM is the Search form that that appears in your page header, when enabled. It can be enabled in your theme-settings: administer > site building > Themes > Configure by checking "Search box".

The BLOCK SEARCH THEME FORM is the search form that that appears in your sidebars, when enabled. Have a look at the handbook page for customising the block search form.

#4

JohnAlbin - February 14, 2008 - 02:57

Thanks for answering this, Klaas!

#5

Anonymous (not verified) - February 28, 2008 - 03:01
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.