Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Move search field over to the right hand side

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-23-2008, 09:48 AM
 
ibit-matt ibit-matt is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 60
 

Default Move search field over to the right hand side

How do I move search field over to the right hand side of the site.

See Screen Attached
Attached Thumbnails
Click image for larger version

Name:	move-search.gif
Views:	162
Size:	16.8 KB
ID:	1120  
__________________
X Cart Version 4.1.11
Reply With Quote
  #2  
Old 09-23-2008, 10:01 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Move search field over to the right hand side

Use webmaster mode to determine which template the search box is in (try head.tpl to start) and right align the table cell it is in.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 09-23-2008, 10:20 AM
 
ibit-matt ibit-matt is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 60
 

Default Re: Move search field over to the right hand side

Any idea on what code I need to search for please.
__________________
X Cart Version 4.1.11
Reply With Quote
  #4  
Old 09-27-2008, 11:45 AM
 
ibit-matt ibit-matt is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 60
 

Default Re: Move search field over to the right hand side

Can anyone help me with this please
__________________
X Cart Version 4.1.11
Reply With Quote
  #5  
Old 09-27-2008, 11:49 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Move search field over to the right hand side

As I metioned above, open up head.tpl, find the table cell that contains the search box (looks like {include file="search.php"} and add html to right align it. So the td would look like this:

<td align="right">
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 09-27-2008, 12:20 PM
 
ibit-matt ibit-matt is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 60
 

Default Re: Move search field over to the right hand side

Thanks

I seached for what you saud but it was not in the file but figured it out in the end.

I have to change this section

Code:
<td class="HeadLine" height="22"> {if $usertype eq "C"} { include file="customer/search.tpl" } {/if} </td>


to look like this


Code:
<td align="right" class="HeadLine" height="22"> {if $usertype eq "C"} { include file="customer/search.tpl" } {/if} </td>


Thanks
__________________
X Cart Version 4.1.11
Reply With Quote
  #7  
Old 09-27-2008, 12:23 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Move search field over to the right hand side

Yes, that was head.tpl just as I said
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:14 AM.

   

 
X-Cart forums © 2001-2020