| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Using Template on 2 Different Colored Backgrounds | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Using Template on 2 Different Colored Backgrounds
I have a problem with the /skin1/customer/main/cart_totals.tpl file. It is called from cart.php (which has a LIGHT colored background) and cart.php?mode=checkout (which has a DARK colored background). No matter what I change the CSS font colors to, the text cannot be read on one of the pages. Any suggestions?
I was thinking of doing an {if} statement, but I'm not sure of the syntax. Something like {if page=/customer/cart.php} display WHITE font} {else} display BLACK font Any comments are greatly appreciated!
__________________
- disneyana 4.0.17 |
|||||||||
#2
|
|||||||||
|
|||||||||
I'm not expert here but it occured to me that you could just define another css style for one of the pages and then you could set the colours of the text independently.
You would have to alter skin1.css and copy and rename a field. Then call that style in the template of your choice or just replace the name of the style being called already. I hope this works. That's what I would try. |
|||||||||
#3
|
|||||||
|
|||||||
or, in home.tpl put in:
Code:
__________________
ex x-cart guru |
|||||||
#4
|
|||||||
|
|||||||
Hi Disneyana,
In case if you don't want to create another CSS file, because you basically want to add a dark background to your checkout page. I'm assuming you're using dialog.tpl to display your cart.php frames. In your dialog.tpl, Code:
CSS file: Code:
Have a good night!
__________________
Best Regards! Alan Search is my friend |
|||||||
#5
|
|||||||||
|
|||||||||
Hey Guys,
Thanks for the suggestions. I've tried both and still cannot get the font color to switch. When I view the source for /customer/cart.php?mode=checkout it still references skin1.css even though the {if} statement is telling it to use skin2.css. Any other ideas? Time is of the essence. Thanks! - Jeff
__________________
- disneyana 4.0.17 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|