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)
-   -   orange default search bar (https://forum.x-cart.com/showthread.php?t=45553)

seaCOAST 02-13-2009 09:36 AM

orange default search bar
 
I've looked through the template guide, but I'm not having much luck.

I'm trying to edit the default orange search bar at the head. It looks like a gradient image, but I'm not sure.

Can someone please tell me how I can get rid of or change the orange?

Thanks!

balinor 02-13-2009 09:50 AM

Re: orange default search bar
 
Right click on it, view the properties, see what image it is. Upload a new one if you want to change it. If you want to nuke it, use webmaster mode or firebug to determine which class it is and edit accordingly.

Panther 03-13-2009 05:53 PM

Re: orange default search bar
 
I have yet to figure out how to modify the orange bar. Is there a way to change the color of it? Is there a way to make it smaller in height? Is there a way to change the color to the same blue in the menus? If so, what color numbers for the blue?

Thanks in advance for any assistance.

balinor 03-14-2009 02:48 AM

Re: orange default search bar
 
Did you not follow what I just suggested above?

Panther 03-14-2009 03:30 AM

Re: orange default search bar
 
Yes I did what you mentioned above and got that it's in my home.php file. I looked around for where I needed to make the change to no avail.

Sorry to have annoyed you with another question. :?

seaCOAST 03-14-2009 04:29 AM

Re: orange default search bar
 
Quote:

Originally Posted by Panther
I have yet to figure out how to modify the orange bar. Is there a way to change the color of it? Is there a way to make it smaller in height? Is there a way to change the color to the same blue in the menus? If so, what color numbers for the blue?

Thanks in advance for any assistance.


The image is skin1/images/head_linebg.gif.

I adjusted the height and color of the image and adjusted the height of the bar in the main.css.

If you use Firefox, try the Firebug add-on. It will help you find the section in the main.css that pertains to whatever you want to change.

balinor 03-14-2009 04:42 AM

Re: orange default search bar
 
The templates are a bit different, but you should read this for the general template editing concepts: http://forum.x-cart.com/showthread.php?t=21529

You didn't annoy me, but you aren't following the instructions :)

Panther 03-14-2009 09:19 PM

Re: orange default search bar
 
Any idea how to move the search box out of the orange bar and under the speed bar?

ARW VISIONS 03-15-2009 10:43 AM

Re: orange default search bar
 
cut the related code for the search bar then paste it under the code for the speed bar.

Panther 03-15-2009 11:23 AM

Re: orange default search bar
 
Would this occur in the same file or 2 different files?

ARW VISIONS 03-15-2009 11:32 AM

Re: orange default search bar
 
If you are going to design your store you really need to dig around and get used to the .tpl structure.

These are pretty basic questions and if you are having problems with this, you really have alot of learning to do.

Read the template editing guide and the thread about things asked a million times. It will save you and me a lot of head ache :)

Panther 03-15-2009 01:49 PM

Re: orange default search bar
 
Ok well please forgive me for asking a freakin' question!!!

ARW VISIONS 03-15-2009 02:00 PM

Re: orange default search bar
 
Sorry, wasn't trying to be rude. It's pretty easy to figure out if you understand the file structure.

Both bits are located in customer/head.tpl

this is the code for the search bar.

<div class="search">
<div class="valign-middle">
<form method="post" action="search.php" name="productsearchform">

<input type="hidden" name="simple_search" value="Y" />
<input type="hidden" name="mode" value="search" />
<input type="hidden" name="posted_data[by_title]" value="Y" />
<input type="hidden" name="posted_data[by_descr]" value="Y" />
<input type="hidden" name="posted_data[by_sku]" value="Y" />
<input type="hidden" name="posted_data[search_in_subcategories]" value="Y" />
<input type="hidden" name="posted_data[including]" value="all" />

{strip}

<span class="search">{$lng.lbl_search}:</span>
<input type="text" name="posted_data[substring]" size="16" value="{$search_prefilled.substring|escape}" />
{include file="customer/buttons/button.tpl" type="input" style="image"}
<a href="search.php" class="search">{$lng.lbl_advanced_search}</a>
{/strip}

</form>

</div>
</div>

This si the code for the speed bar

{if $speed_bar}
<div class="tabs">
<ul>

{foreach from=$speed_bar item=sb}
<li><a href="{$sb.link|amp}">{$sb.title}</a></li>
{/foreach}

</ul>
</div>
{/if}

experiment with moving it around a bit, and see hwat you can do.

balinor 03-15-2009 03:29 PM

Re: orange default search bar
 
Panther, we aren't trying to be jerks, but you need to help yourself a bit here and not use the forum as a help desk. The template editing guide I have linked to you multiple times explains how to find templates, edit them and navigate through them. You really need to spend the time to learn it and not just ask people to give you a step by step guide each time you have a question. There is a steep learning curve with X-Cart, but once you get the hang of it you will save yourself countless hours of headaches trying to change simple things. Take a few hours and read read read - and then try try try. If you are still having problems after that, come back and let us know how we can help.


All times are GMT -8. The time now is 08:54 PM.

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