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

Changing background colour for one page only

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-22-2005, 04:07 AM
 
gregl gregl is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 98
 

Default Changing background colour for one page only

Hi,
I need to find out how I can easily change the background colour for a single page only. Example -on our welcome page, I need to make change to include a "Xmas gift list". I've created the page in Dreamweaver, but whenever I call it from my Welcome.tpl, I get smarty errors with the CSS style of the background.

What do I need to change?

Thanks for any help available.


Greg
__________________
XCart 4.0.19
XConfigurator 4.0.19
AOM 4.0.19
Zeus Server
Reply With Quote
  #2  
Old 11-30-2005, 03:42 AM
 
balinor balinor is offline
 

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

Default

Perhaps if you post the code we could help. What you are probably going to have to do is write an {if} statement to use a different css class for that page only.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-30-2005, 11:54 AM
 
gregl gregl is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 98
 

Default

Thanks for the reply Balinor,

I'd forgotten that post. I still haven't solved it so I just ran with the plain white default background for the moment.

Which piece of code do you want me to supply? My welcome.tpl or my "featured Xmas page"? or both or?

Currently my welcome.tpl includes:
{include file="customer/main/feature5.tpl"}

Are you suggesting creating a separate css file and call that or something else?
eg:


{if}"feature5.tpl"
<LINK rel="stylesheet" href="{$SkinDir}/{#CSSfeature5#}">
{/if}
Thanks again for the reply

Regards


Greg
__________________
XCart 4.0.19
XConfigurator 4.0.19
AOM 4.0.19
Zeus Server
Reply With Quote
  #4  
Old 11-30-2005, 04:26 PM
 
balinor balinor is offline
 

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

Default

Actually I meant call a different class, not stylesheet. In your feature5.tpl, if it is table-based, just do something like this:

<table class="newclassname">

Then define the new class in the stylesheet with a different background color.
__________________
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 04:00 AM.

   

 
X-Cart forums © 2001-2020