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)
-   -   RE: Color Themed Site/Pages (https://forum.x-cart.com/showthread.php?t=37086)

DezineJunkie 01-27-2008 06:37 PM

RE: Color Themed Site/Pages
 
How do i make different pages different colors in the site.
Do i have to create a CSS for each page to do that?

anela2003 01-27-2008 08:57 PM

Re: Color Themed Site/Pages
 
If you are referring to pages.php?pageid=???, you'd need to create additional files like customer/home.tpl, but with their unique layouts. Then, when you go to pages.php?, at the bottom you can select which pageid corresponds to which unique layout (i.e. home.tpl, homesimilar1.tpl, homesimilar2.tpl, etc).

Hope that helps.

balinor 01-28-2008 04:09 AM

Re: Color Themed Site/Pages
 
You don't need to create a new template, you can simply call a different stylesheet for each static page. It would look something like this:

{if $smarty.get.pageid eq "5"}
<LINK rel="stylesheet" href="{$SkinDir}/skin1.css" type="text/css">
{elseif $smarty.get.pageid eq "6"}
<LINK rel="stylesheet" href="{$SkinDir}/skin2.css" type="text/css">
{/if}

That wil show one css file for page 5, and a different one for page 6. You would use this in customer/home.tpl in the head.


All times are GMT -8. The time now is 04:44 PM.

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