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

Backgrounds

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-19-2006, 03:09 AM
 
neroag neroag is offline
 

Senior Member
  
Join Date: May 2005
Location: UK
Posts: 171
 

Default Re: Backgrounds

Do you mean the background colour on the header ??

ie in head.tpl

change ...
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">

to ...
<TABLE bgcolor="#FF0000" border="0" cellpadding="0" cellspacing="0" width="100%">

= Red Background
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0
Reply With Quote
  #12  
Old 11-19-2006, 04:13 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Backgrounds

What I think you want is to change the background-color ABOVE the search line, yes?

There is more than one way to accomplish this...

one way (perhaps the easiest way) is to define a new class for the first <tr>

FIND
Code:
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <TD width="4">&nbsp;</TD> <TD><A href="{$http_location}"><IMG src="{$ImagesDir}/xlogo.gif" width="275" height="70" border="0"></A></TD> <TD valign="top" align="right"> {if $usertype eq "C"} {include file="customer/top_menu.tpl"} {/if} </TD></TR> </TABLE>

REPLACE WITH
Code:
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <tr class="newheaderbackground"> <TD width="4">&nbsp;</TD> <TD><A href="{$http_location}"><IMG src="{$ImagesDir}/xlogo.gif" width="275" height="70" border="0"></A></TD> <TD valign="top" align="right"> {if $usertype eq "C"} {include file="customer/top_menu.tpl"} {/if} </TD></TR> </TABLE>

THEN -- add a class to your CSS (it can go anywhere):
Code:
.newheaderbackground { background-color: #ffffff; }
(obviously replace ffffff with your intended background color)

This is CSS 101... if you're going to get deeper into xcart, you would benefit greatly by knowing some basic css and html. I encourage you to buy a book or read the many tutorials available on the net.

Good luck.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #13  
Old 11-20-2006, 12:29 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default Re: Backgrounds

Thanks to both of you for your help.

Jeremy I have to admit, I've programmed in many languages, just not HTML but I'm learning.

So I have applied the new class, which makes it neater and easier for changes.

Thanks again for all your help
__________________
version 4.018 xcart
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:36 PM.

   

 
X-Cart forums © 2001-2020