X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   moving search bar (https://forum.x-cart.com/showthread.php?t=37738)

toolexperts 02-21-2008 05:30 AM

moving search bar
 
My site is at 216.75.30.97.

I want to move the search bar to the right hand side of the logo area

How is this done?

kube 02-21-2008 05:48 AM

Re: moving search bar
 
Hi there,

in skin1/head.tpl

You could try moving...
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}

into your empty...
<td class="HeadRightBox">

It will get messy so remember to back up. As you'll need to do a few things to get it sitting right.

Also, use webmaster mode - it's your friend.

Regards,
Doms

toolexperts 02-21-2008 05:59 AM

Re: moving search bar
 
thanks kube...where do I go to comment the old one out?

toolexperts 02-21-2008 06:07 AM

Re: moving search bar
 
also what coding would i put in to make it align right?

kube 02-21-2008 06:16 AM

Re: moving search bar
 
The original search box is located further down in head.tpl using the same code as I mentioned.

Also where you have placed the new snip into the TD HeadRightBox, surround it with {if $main ne "fast_lane_checkout"} so it looks like...

<td class="HeadRightBox">
{if $main ne "fast_lane_checkout"}
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}
{/if}
</td>

toolexperts 02-21-2008 06:55 AM

Re: moving search bar
 
I have implemented this and it seems to be working fine..thank you

kube 02-21-2008 07:39 AM

Re: moving search bar
 
toolexperts you're going to have to watch out what's happening with the code, becareful.

At the moment you have a TD HeadRightBox inside another TD HeadRightBox.

Also your TD Container isn't closed - but that isn't an effect of moving the search bar. Make sure you have these sorted otherwise it will become a headache. This is the reason why things aren't aligning as to how you wish.

toolexperts 02-21-2008 08:46 AM

Re: moving search bar
 
**scratches head** it looks fine to me....what do i need to fix? Thanks in advance

kube 02-21-2008 09:05 AM

Re: moving search bar
 
It may look fine but something is wrong somewhere.

From viewing your source and half-way down, this is what is corrupting it (a HTML comment from me shows the problem below)...

<table cellpadding="0" cellspacing="0" width="100%">
<tr>
</td> <!---<<<<<<< The problem is here, a closing </TD> tag with no beginning/open <TD> tag! -->
<td class="HeadLine" align="right">&nbsp;

</td>

</tr>
<tr>
<td colspan="2">
</td>
</tr>
</table><!-- main area -->


Hope this helps.

toolexperts 02-21-2008 09:23 AM

Re: moving search bar
 
ok that should have killed it...thanks!


All times are GMT -8. The time now is 09:43 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.