Seach box resizable?

General ShopSite user discussion

Seach box resizable?

Postby RedSyntax » Fri Jan 09, 2009 9:00 am

How do I resize the search boxes? found on pages? the default size is 40.
RedSyntax
 
Posts: 51
Joined: Mon Nov 17, 2008 7:29 am

Postby Jim » Fri Jan 09, 2009 10:14 am

YOu would need to modify the page template. Normally the page template would include a tag [-- SEARCH_FORM --] where the search box will display on the page. You would need to replace that tag with the code to display the same information as the tag generates but change the size part. For example:
Code: Select all
<form name="productsearch" class="productsearch" action="http://mydomain.com/cgi-bin/jim/91dev/sc/productsearch.cgi"  method=post >
<center>
<input type=text name="search_field" size=40>
<input type=hidden name="storeid" value="*108a8119ba56de010e59">
<input type=image src="http://mydomain.com/91store/shopsite-images/en-US/buttons/transparent/blacktext-search.gif" align=top border=0 name="/buttons/transparent/blacktext-search.gif" alt="/buttons/transparent/blacktext-search.gif">
</form>


You would edit the line
<input type=text name="search_field" size=40>
and change the "40" to what ever size you want.

You can get the code from one of your pages by viewing the source and copying the code from the page to the template.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 108 guests