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)
-   -   Changing background colour for one page only (https://forum.x-cart.com/showthread.php?t=18133)

gregl 11-22-2005 04:07 AM

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

balinor 11-30-2005 03:42 AM

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.

gregl 11-30-2005 11:54 AM

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

balinor 11-30-2005 04:26 PM

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.


All times are GMT -8. The time now is 09:12 AM.

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