<div>
<input type="text" class="field" id="s" name="s" value="Looking for something?" style="float:left; width:190px";/>
<input type="image" value="Search" id="searchsubmit" src="http://www.graysonsinfrance.net/Test/wp-content/themes/autumn-concept-1_0/images/button_search.png" style="float:left;"/>
</div>
You might want to put the styles in style.css.
Hi srikat,
Thanks for your reply. But where do I find this code? I can’t find any code that sets the width of the search form. I’ve found code that looks like what you posted but without the “width” reference in both the header.php file and the searchform.php file. I tried adding the width reference into both of these, but nothing changes.
I’m sure it’s obvious when you know how…
Rob
Open your theme’s header.php in a text editor.
Locate:
<input type="text" value="Looking for something?" name="s" id="s" class="field" />
<input type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/button_search.png" id="searchsubmit" value="Search" />
Replace w/:
<input type="text" value="Looking for something?" name="s" id="s" class="field" style="float:left; width:190px";/>
<input type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/button_search.png" id="searchsubmit" value="Search" style="float:left;"/>
Remember: Firebug and Windows grep are your detective friends.
Srikat,
Thanks once again for your excellent help – sorted!
Any ideas about why my posts are displaying in the wrong order? (See post here.) Note that I’ve updated to v 2.3.3 but no difference.
Rob