Skip to:

Re: Jack Hammer Discussions



For the size of the input text box, you need to change this in your theme’s search-form.php:

<input size="38" maxlength="100" name="q" value="" type="text">


Change the 38 to something smaller and the size of the box displayed will be smaller.

Then, right below that in the file, you need to change this:

<input value="Search ยป" class="inputButton" type="submit">

to this:

<input value="Go!" class="inputButton" type="submit" >

To get everything on one line, you need to remove all the paragraph tags around those two form fields in your search.php. Each form element is in its own paragraph so there are lilne breaks there. Remove the [p] and [/p] tags and see what it looks like. You will most likely need to add a space between the form input and the Go button after that, but I think it will do what you want. It will look something like this when you’re done:

<form action="<?php bb_option('uri'); ?>search.php" method="get">
<?php _e('Search:'); ?>
<input type="text" size="23" maxlength="100" name="q" value="<?php echo attribute_escape( $q ); ?>" />

<?php if( empty($q) ) : ?>
<p class="submit"><input type="submit" value="<?php echo attribute_escape( __('Go!') ); ?>" class="inputButton" />

<?php else : ?>
<p class="submit"><input type="submit" value="<?php echo attribute_escape( __('Search again &raquo;') ); ?>" class="inputButton" />

<?php endif; ?>

Skip to toolbar